activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuconic <>
Subject [GitHub] activemq-artemis pull request #960: ARTEMIS-921 Consumers killed as slow eve...
Date Mon, 16 Jan 2017 14:37:50 GMT
Github user clebertsuconic commented on a diff in the pull request:
    --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/
    @@ -3159,6 +3162,9 @@ public void run() {
    +                        //break once a consumer gets killed. This can prevent all
    +                        //consumers to this queue get killed all at once.
    +                        break;
    --- End diff --
    This fix was using the definition of the JIRA and literally fixing the test, not the overal
    The proper fix would be to do some calculation with threshold using consumerSet.size();
    I have a small change on QueueIMpl that I think would fix it properly, including both
Kill and Notify.
             Set<Consumer> consumersSet = getConsumers();
             if (consumersSet.size() == 0 || queueRate  < (threshold * consumersSet.size()))
                if (logger.isDebugEnabled()) {
                   logger.debug("Insufficient messages received on queue \"" + getName() +
"\" to satisfy slow-consumer-threshold. Skipping inspection of consumer.");
             for (Consumer consumer : consumersSet) {

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message