Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1738

ForkClient does not always delete temporary bootstrap jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 1.17, 2.0.0-BETA, 2.1.0
    • core
    • None
    • Windows 10

    • Patch

    Description

      ForkClient creates a new temporary bootstrap jar each time it's instantiated, and tries to delete it in the close() method, after destroying the process.
      Possibly a Windows-specific behavior, the OS seem to still hold a handle to the file a bit after the process is destroyed, causing the delete() method to do nothing.
      This is recreated by simply running ForkParserTest on my machine.

      In a long-running process,this could fill the temp folder with many bootstrap jars that will never be deleted.

      Attachments

        1. TIKA-1738.patch
          12 kB
          Yaniv Kunda

        Activity

          People

            Unassigned Unassigned
            kunda Yaniv Kunda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: