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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 9
    • tools
    • None

      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.

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

              Created:
              Updated:
              Resolved: