activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtaylor <>
Subject [GitHub] activemq-artemis pull request #1629: ARTEMIS-1486 Core client should be noti...
Date Thu, 02 Nov 2017 11:18:42 GMT
Github user mtaylor commented on a diff in the pull request:
    --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/
    @@ -1621,6 +1621,7 @@ public boolean closeConsumerWithID(final String sessionID, final
String ID) thro
                    for (ServerConsumer serverConsumer : serverConsumers) {
                       if (serverConsumer.sequentialID() == Long.valueOf(ID)) {
    +                     serverConsumer.disconnect();
                          return true;
    --- End diff --
    Something to note here.  When the server calls disconnect, it sends a DisconnectConsumer
packet to the client.  The client processes this packet (cleans up some local state) then
sends a CloseConsumer packet to the broker.  Since the broker has already closed the consumer
it will log an error message.
    Since this is a "ForceClose" style operation, I think it's OK just to document that this
may happen.  I think an improvement on this is to update the client to only send the close
consumer packet if the close is called from the client API and not via the disconnect consumer


View raw message