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

OneMerge#mergeFinish is called multiple times

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      After enforcing calling this method only once a random test caused OneMerge#mergeFinished to be called multiple times.

      21:06:59    [junit4] Suite: org.apache.lucene.index.TestIndexFileDeleter
      21:06:59    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestIndexFileDeleter -Dtests.method=testExcInDeleteFile -Dtests.seed=BCFF67862FF6529B -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=haw-US -Dtests.timezone=Etc/Zulu -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
      21:06:59    [junit4] FAILURE 0.04s J0 | TestIndexFileDeleter.testExcInDeleteFile <<<
      21:06:59    [junit4]    > Throwable #1: java.lang.AssertionError
      21:06:59    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([BCFF67862FF6529B:518F81E5ACB0444E]:0)
      21:06:59    [junit4]    > 	at org.apache.lucene.index.TestIndexFileDeleter.testExcInDeleteFile(TestIndexFileDeleter.java:525)
      21:06:59    [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      21:06:59    [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      21:06:59    [junit4]    > 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      21:06:59    [junit4]    > 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      21:06:59    [junit4]    > 	at java.base/java.lang.Thread.run(Thread.java:834)
      

      mergeFinished should only be called once.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simonw Simon Willnauer

              Dates

              • Created:
                Updated:
                Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 50m
              50m

                Issue deployment