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

Synchronization issue for concurrent registrations in Smart router

    XMLWordPrintable

    Details

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

      Simulated on OpenShift using rhpam70-kieserver-mysql.yaml and rhpam70-prod-immutable-monitor.yaml

    • Affects Build:
      CR3
    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide

      Start 2 instances of Smart router with shared storage configured. Send a request to register different Kie server for particular container to each Smart router instance at the same time. Wait until the synchronization completes.
      =>
      One of Kie servers is missing in config file and inner configuration of Smart routers.

      Show
      Start 2 instances of Smart router with shared storage configured. Send a request to register different Kie server for particular container to each Smart router instance at the same time. Wait until the synchronization completes. => One of Kie servers is missing in config file and inner configuration of Smart routers.

      Description

      The issue happens in case of concurrent requests to several Smart routers to register Kie servers for container. Some of Kie servers are missing in config file after the last synchronization is finished. The issue is caused by Smart routers overriding config file updated by other Smart router instances before the changes are fetched.

      The issue can be partly reduced by setting smaller refresh intervals, however it doesn't eliminate the issue completely.
      My suggestion is to load configuration file every time Smart router gets a request to register/unregister Kie server. This way the Smart router will always work with the most accurate configuration.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  ksuta Karel Suta
                  Tester:
                  Karel Suta
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: