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

[AMQ 7, scaledown] AMQ222112: exception while retrieving attribute ID on queue.mytest_1: java.lang.IllegalStateException: Problem while retrieving attribute ID

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.2.1.GA
    • AMQ 7.2.0.GA
    • broker-core
    • None
    • Hide

      To work around the issue ensure the queue are created on broker2 BEFORE scale down is attempted on broker1.

      Show
      To work around the issue ensure the queue are created on broker2 BEFORE scale down is attempted on broker1.
    • Hide
      • start broker1 with scaledown configuration
      <ha-policy>
               <live-only>
                  <scale-down>
                     <connectors>
                        <connector-ref>server1-connector</connector-ref>
                     </connectors>
                  </scale-down>
               </live-only>
            </ha-policy>
      ...
        <connector name="server1-connector">tcp://localhost:61636</connector>
      ...
      
      • dynamically create a queue/address on broker1 (that is not no broker2)
      • shudown broker1.

      RESULT:

      • the above exception on broker2 is report
      • address and queue are created on broker2
      • no message for that address/queue on broker1 OR broker2
      Show
      start broker1 with scaledown configuration <ha-policy> <live-only> <scale-down> <connectors> <connector-ref>server1-connector</connector-ref> </connectors> </scale-down> </live-only> </ha-policy> ... <connector name= "server1-connector" >tcp: //localhost:61636</connector> ... dynamically create a queue/address on broker1 (that is not no broker2) shudown broker1. RESULT: the above exception on broker2 is report address and queue are created on broker2 no message for that address/queue on broker1 OR broker2

      When scaling down from broker1 to broker2, addresses that where dynamically created on broker1
      and did not exist on broker2 gave the following exception on broker2 .

      Resulted in the messages where gone from broker1 but did not appear on broker2.

      2018-09-09 10:37:47,119 WARN  [org.apache.activemq.artemis.core.server] AMQ222112: exception while retrieving attribute ID on queue.mytest_1: java.lang.IllegalStateException: Problem while retrieving attribute ID
      	at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.getAttribute(ManagementServiceImpl.java:725) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:429) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:1688) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1468) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1394) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1387) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onSessionSend(ServerSessionPacketHandler.java:668) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onMessagePacket(ServerSessionPacketHandler.java:265) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler$$Lambda$34/1480214365.onMessage(Unknown Source)
      	at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:33) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:66) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase$$Lambda$3/1332210474.run(Unknown Source)
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:66) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase$$Lambda$3/1332210474.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_20]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_20]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      Caused by: java.lang.IllegalArgumentException: AMQ119067: Cannot find resource with name queue.mytest_1
      	at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.getAttribute(ManagementServiceImpl.java:708) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	... 18 more
      

              rh-ee-ataylor Andy Taylor
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: