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

java (10 & 11) HashMap bug can trigger AssertionError when using SolrCaches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • None
    • None

    Description

      we've seen some java11 jenkins builds that have failed due to an AssertionError being thrown by HashMap.put as used in LRUCache – in at least one case these failures are semi-reproducible. (the occasional "success" is likely due to some unpredictibility in thread contention)

      Some cursory investigation suggests that JDK-8205399, first identified in java10, and fixed in java12-b26...

      https://bugs.openjdk.java.net/browse/JDK-8205399

      There does not appear to be anything we can do to mitigate this problem in Solr.
      It's also not clear to me based on th comments in JDK-8205399 if the underlying problem can cause problems for end users running w/assertions disabled, or if it just results in sub-optimal performance

      Attachments

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: