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

TestPriorityQueue failures

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • core/other
    • None
    • New

    Description

      Elastic CI found a couple of failures in TestPriorityQueue:

      java.lang.AssertionError
      	at __randomizedtesting.SeedInfo.seed([7116E1C3DFA51E99:7507110B3E9E9A3]:0)
      	at org.apache.lucene.util.TestPriorityQueue$IntegerQueue.lessThan(TestPriorityQueue.java:36)
      	at org.apache.lucene.util.TestPriorityQueue$IntegerQueue.lessThan(TestPriorityQueue.java:28)
      	at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:264)
      	at org.apache.lucene.util.PriorityQueue.add(PriorityQueue.java:141)
      	at org.apache.lucene.util.TestPriorityQueue.testIteratorRandom(TestPriorityQueue.java:241)
      

      It can be reproduced with the following seed: -Dtests.seed=7116E1C3DFA51E99
      It is due to https://issues.apache.org/jira/browse/LUCENE-8345 which removed the deprecated call to "new Integer" despite the fact that the queue in the tests (IntegerQueue#lessThan) does not allow to reuse Integers.

      Attachments

        1. LUCENE-8402.patch
          0.7 kB
          Jim Ferenczi

        Activity

          People

            Unassigned Unassigned
            jim.ferenczi Jim Ferenczi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: