You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/05/19 06:34:01 UTC
[james-project] branch master updated: JAMES-3737 RabbitMQ unbinding is potentially blocking
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 3847055582 JAMES-3737 RabbitMQ unbinding is potentially blocking
3847055582 is described below
commit 384705558240caf6b0e2d77e5524c6af3e2ea68f
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue May 17 18:13:55 2022 +0700
JAMES-3737 RabbitMQ unbinding is potentially blocking
AMQP channel uses a lock to execute one RPC
---
.../src/main/java/org/apache/james/events/KeyRegistrationHandler.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/event-bus/distributed/src/main/java/org/apache/james/events/KeyRegistrationHandler.java b/event-bus/distributed/src/main/java/org/apache/james/events/KeyRegistrationHandler.java
index 9beae3d658..a6923bd8d2 100644
--- a/event-bus/distributed/src/main/java/org/apache/james/events/KeyRegistrationHandler.java
+++ b/event-bus/distributed/src/main/java/org/apache/james/events/KeyRegistrationHandler.java
@@ -149,7 +149,9 @@ class KeyRegistrationHandler {
if (registration.unregister().lastListenerRemoved()) {
return Mono.from(metricFactory.decoratePublisherWithTimerMetric("rabbit-unregister", registrationBinder.unbind(key)
.timeout(TOPOLOGY_CHANGES_TIMEOUT)
- .retryWhen(Retry.backoff(retryBackoff.getMaxRetries(), retryBackoff.getFirstBackoff()).jitter(retryBackoff.getJitterFactor()).scheduler(Schedulers.elastic()))));
+ .retryWhen(Retry.backoff(retryBackoff.getMaxRetries(), retryBackoff.getFirstBackoff()).jitter(retryBackoff.getJitterFactor()).scheduler(Schedulers.elastic()))))
+ // Unbind is potentially blocking
+ .subscribeOn(Schedulers.elastic());
}
return Mono.empty();
}));
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org