Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 00584200B7A for ; Mon, 5 Sep 2016 15:48:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F3178160ACB; Mon, 5 Sep 2016 13:48:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 69823160ABC for ; Mon, 5 Sep 2016 15:48:30 +0200 (CEST) Received: (qmail 39530 invoked by uid 500); 5 Sep 2016 13:48:29 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 39515 invoked by uid 99); 5 Sep 2016 13:48:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 13:48:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 22FC8DFDD3; Mon, 5 Sep 2016 13:48:29 +0000 (UTC) From: mtaylor To: dev@activemq.apache.org Reply-To: dev@activemq.apache.org References: In-Reply-To: Subject: [GitHub] activemq-artemis pull request #749: ARTEMIS-581 Implement max disk usage, an... Content-Type: text/plain Message-Id: <20160905134829.22FC8DFDD3@git1-us-west.apache.org> Date: Mon, 5 Sep 2016 13:48:29 +0000 (UTC) archived-at: Mon, 05 Sep 2016 13:48:31 -0000 Github user mtaylor commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/749#discussion_r77524578 --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java --- @@ -1249,6 +1256,14 @@ public RoutingStatus send(final ServerMessage message, final boolean direct) thr @Override public RoutingStatus send(final ServerMessage message, final boolean direct, boolean noAutoCreateQueue) throws Exception { + + // If the protocol doesn't support flow control, we have no choice other than fail the communication + if (!this.getRemotingConnection().isSupportsFlowControl() && pagingManager.isDiskFull()) { + ActiveMQIOErrorException exception = ActiveMQMessageBundle.BUNDLE.diskBeyondLimit(); + this.getRemotingConnection().fail(exception); + throw exception; --- End diff -- Also even with flow control switched on, the client is still able to send until it's current credit. --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---