Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11757

SolrException.ignoreException race conditions in tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.3
    • None
    • None

    Description

      It seems somehow race conditions between tests starting or closing can result in SolrException.ignoreExceptions (a set of patterns) getting modified and read concurrently causing a ConcurrentModificationException.

      com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[OverseerCollectionConfigSetProcessor-99162700839714821-127.0.0.1:39413_solr-n_0000000000,5,Overseer collection creation process.]
         [junit4]   2> java.util.ConcurrentModificationException
         [junit4]   2>     at __randomizedtesting.SeedInfo.seed([E519150A6D300C6B]:0)
         [junit4]   2>     at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1494)
         [junit4]   2>     at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1517)
         [junit4]   2>     at org.apache.solr.common.SolrException.doIgnore(SolrException.java:202)
         [junit4]   2>     at org.apache.solr.common.SolrException.log(SolrException.java:154)
         [junit4]   2>     at org.apache.solr.cloud.OverseerTaskProcessor.run(OverseerTaskProcessor.java:305)
         [junit4]   2>     at java.base/java.lang.Thread.run(Thread.java:844)
      

      Attachments

        1. SOLR-11757.patch
          5 kB
          David Smiley

        Activity

          People

            dsmiley David Smiley
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: