You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/15 08:18:00 UTC

[jira] [Commented] (ARTEMIS-2097) Pause and Block Producers

    [ https://issues.apache.org/jira/browse/ARTEMIS-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649882#comment-16649882 ] 

ASF GitHub Bot commented on ARTEMIS-2097:
-----------------------------------------

GitHub user gaohoward opened a pull request:

    https://github.com/apache/activemq-artemis/pull/2371

    ARTEMIS-2097 Pause and Block Producers

    Added new methods to AddressControl and ServerControl to allow users
    to block sending on addresses. Once blocked, any messages sending
    to the blocked addresses will get rejected with an exception. The
    senders can catch the corresponding exception and handle properly.
    For example, keep resending or send messages to some alternative
    addresses.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gaohoward/activemq-artemis a_2097

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/2371.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2371
    
----
commit 056e09b036ffe4eb0022328a837cfa8ec7c28203
Author: Howard Gao <ho...@...>
Date:   2018-10-15T08:10:31Z

    ARTEMIS-2097 Pause and Block Producers
    
    Added new methods to AddressControl and ServerControl to allow users
    to block sending on addresses. Once blocked, any messages sending
    to the blocked addresses will get rejected with an exception. The
    senders can catch the corresponding exception and handle properly.
    For example, keep resending or send messages to some alternative
    addresses.

----


> Pause and Block Producers
> -------------------------
>
>                 Key: ARTEMIS-2097
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2097
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 1.5.5
>         Environment: AMQ-1.5.5
>            Reporter: Tyronne Wickramarathne
>            Assignee: Howard Gao
>            Priority: Major
>             Fix For: unscheduled
>
>
> Could it be possible to block all incoming messages without changing the address-full-policy to 'BLOCK'?
> The address full policy can be configured to block incoming messages should the address full policy reaches the configured max-size-bytes attributes.
> However, on certain circumstances it is important to make a JMS destination drain without accepting incoming messages while keeping the address-full-policy at 'PAGE'. For an instance, if a user needs to bring down the broker for maintenance, it is important to allow the user to drain existing messages in the corresponding destination without accepting any new messages.
>  
> Currently the pause() method on a destination pauses message consumers. In a similar fashion could it be possible to add a new method to block message producers on a given destination irrespective of the address-full-policy being used?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)