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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P4
    • tbd
    • 9
    • tools
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: