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

    • Bug
    • Resolution: Done
    • Major
    • 7.0.2.GA
    • 7.0.0.GA
    • Kie-Server
    • None
    • Simulated on OpenShift using rhpam70-kieserver-mysql.yaml and rhpam70-prod-immutable-monitor.yaml

    • CR3
    • CR1
    • 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.

      Attachments

        Issue Links

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              ksuta Karel Suta
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: