Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9158

Fix tests to respect java.io.tmpdir by default

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • general/test
    • None
    • New

    Description

      Currently the tests destroy your SSDs by writing temp test data to build/test/ in your checkout.

      It would be better to respect java.io.tmpdir for where all the temporary files get written. This way, if someone has configured their system/environment variables appropriately, it won't destroy SSD.

      On linux it may work by default in many cases, as a lot of linux systems mount /tmp on tmpfs by default.

      On windows users could have created a RAM drive such as R: and have TMP environment variable pointed at it, we should respect that.

      Attachments

        1. LUCENE-9158.patch
          1.0 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: