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

FederatedAddress Matcher Serialization failure configuring Colocated HA Cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • AMQ 7.8.0.GA
    • None
    • False
    • False
    • Undefined
    • Hide
      1. Configure 4 brokers (2 clustered pairs) with attached broker.xml files
      2. Start 1 broker pair (federation-1 and -2)
      3. Observe broker logs for ConfigurationImpl.copy() failure stack trace attempting to serialize a FederatedAddress$Matcher instance

      The attached broker.xml files contain address federation configurations but queue federations would exhibit the same failure.

      Show
      Configure 4 brokers (2 clustered pairs) with attached broker.xml files Start 1 broker pair (federation-1 and -2) Observe broker logs for ConfigurationImpl.copy() failure stack trace attempting to serialize a FederatedAddress$Matcher instance The attached broker.xml files contain address federation configurations but queue federations would exhibit the same failure.

      Attempting to configure address federation between colocated HA broker clusters in separate DCs. The customer use case requires duplicating each message for processing in two separate DCs, so address federation covers this requirement nicely.

      Configuring active-active, replicated broker pairs in clusters with colocated HA and address federation gives the following Exception:

      AMQ222261: Failed to activate a backup: java.security.PrivilegedActionException: java.io.NotSerializableException: org.apache.activemq.artemis.core.server.federation.address.FederatedAddress$Matcher

      The FederatedAddress$Matcher inner class is indeed not marked as java.io.Serializable. Presumably FederatedQueue$Matcher would throw the same Exception.

        1. fed-4-broker.xml
          4 kB
        2. fed-3-broker.xml
          4 kB
        3. fed-2-broker.xml
          4 kB
        4. fed-2-artemis.log
          65 kB
        5. fed-1-broker.xml
          4 kB
        6. fed-1-artemis.log
          147 kB

              rh-ee-ataylor Andy Taylor
              rhn-gps-rhighley Ryan Highley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: