Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3385

Stateful session is not thread safe for update operation on JDK11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 7.16.0.Final
    • core engine
    • None
    • 2018 Week 48-50
    • NEW
    • NEW

      We have a test failure in multithreaded solving in OptaPlanner (please see the linked issue for details). Interestingly, it happens only with JDK11.

      java.util.ConcurrentModificationException: null
      at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134)
      at org.drools.core.impl.KnowledgeBaseImpl.getOrCreateExactTypeDeclaration(KnowledgeBaseImpl.java:1458)
      at org.drools.core.common.NamedEntryPoint.update(NamedEntryPoint.java:324)
      at org.drools.core.impl.StatefulKnowledgeSessionImpl.update(StatefulKnowledgeSessionImpl.java:1570)
      at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.update(DroolsScoreDirector.java:254)

              mfusco@redhat.com Mario Fusco
              rsynek@redhat.com Radovan Synek (Inactive)
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: