Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1384

ConcurrentModificationException in Smart router when removing Kie servers with same URL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.2.GA
    • 7.0.2.GA
    • Kie-Server
    • None
    • Reproduced in OpenShift.

    • CR1
    • CR2
    • Hide

      Create a Smart router cluster consisting of 2 Smart routers connected using shared config file.
      Start 3 Kie servers and connect them to Smart routers using same URL (reproducing WebSocket configuration and route URL in OpenShift).
      Deploy same container to all 3 Kie servers.
      Stop one Kie server.

      Show
      Create a Smart router cluster consisting of 2 Smart routers connected using shared config file. Start 3 Kie servers and connect them to Smart routers using same URL (reproducing WebSocket configuration and route URL in OpenShift). Deploy same container to all 3 Kie servers. Stop one Kie server.

    Description

      The issue happens in clustered Smart router when several Kie servers have same location URL and are connected to the Smart router cluster.
      In case one Kie server disconnects, the Smart router updates shared config file. When the other Smart router loads the updated config file it gets ConcurrentModificationException. The stacktrace from reproducer is in the attachment.

      The reproducer and proposed fix are in the PR.

      Attachments

        Issue Links

          Activity

            People

              ksuta Karel Suta
              ksuta Karel Suta
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: