Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8168144

[old doclet] Javadoc search index generation is not thread safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:
      None

      Description

      AbstractIndexWriter.createSearchIndexFile creates unzipped json file, zips it and then deletes. If another thread deletes same unzipped index in the middle, the original one fails with NoSuchFileException on delete part.

      Contents of the file may be just in memory or there may be a file-locking or just synchronization to make entire operation atomic.

      Actual practical scenario is multi-threaded benchmarking so not sure if it is really an issue but there were no exceptions in the past.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dchuyko Dmitry Chuyko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: