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

Threaded tests with MockDirectoryWrapper delete active PostingFormat files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA
    • Component/s: core/codecs, general/test
    • Labels:
      None
    • Environment:

      Win XP 64bit Sun JDK 1.6

    • Lucene Fields:
      New

      Description

      As part of testing Lucene-4069 I have encountered sporadic issues with files going missing. I believe this is a bug in the test framework (multi-threading issues in MockDirectoryWrapper?) so have raised a separate issue with simplified test PostingFormat class here.
      Using this test PF will fail due to a missing file roughly one in four times of executing this test:
      ant test-core -Dtestcase=TestIndexWriterCommit -Dtests.method=testCommitThreadSafety -Dtests.seed=EA320250471B75AE -Dtests.slow=true -Dtests.postingsformat=TestNonCoreDummyPostingsFormat -Dtests.locale=no -Dtests.timezone=Europe/Belfast -Dtests.file.encoding=UTF-8

        Attachments

        1. Lucene-4275-TestClass.patch
          7 kB
          Mark Hobson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              markh Mark Hobson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: