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

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.2.GA
    • Fix Version/s: 7.0.2.GA
    • Component/s: Kie-Server
    • Labels:
      None
    • Environment:

      Reproduced in OpenShift.

    • Affects Build:
      CR1
    • Target Release:
    • Fix Build:
      CR2
    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ksuta Karel Suta
                  Reporter:
                  ksuta Karel Suta
                  Tester:
                  Karel Suta
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: