Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7963

multiple ordinals in broker properties can result in unordered vol mount data and unnecessary statefulset generations

XMLWordPrintable

      The state-full set volume mounts for ordinal broker properties are keyed on an unordered map, when there are N>1 keys, the order can be random and each reconcile loop can generate an update to the state-full set template, resulting in multiple generations.

      The unordered map should be accessed by iteration over an ordered set of keys to have a consistent reconcile.

      The issue is only with broker properties of the form (ordinals > 1):
      ```
      createdCrd.Spec.BrokerProperties = []string{
      "globalMaxSize=512m",
      "broker-1.populateValidatedUser=true",
      "broker-0.populateValidatedUser=false",
      "broker-2.globalMaxSize=612m",
      "broker-1.globalMaxSize=812m",
      ```

              gtully@redhat.com Gary Tully
              rh-messaging-ci Messaging CI
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: