Skip to content

Commit

Permalink
[fix][broker]Close publishLimiter when disable it (apache#15520)
Browse files Browse the repository at this point in the history
(cherry picked from commit e8c971a)
(cherry picked from commit 761c42d)
  • Loading branch information
AnonHxy authored and nicoloboschi committed May 23, 2022
1 parent aa7f208 commit 1055ae3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1102,6 +1102,9 @@ public void updatePublishDispatcher() {
}
} else {
log.info("Disabling publish throttling for {}", this.topic);
if (topicPublishRateLimiter != null) {
topicPublishRateLimiter.close();
}
this.topicPublishRateLimiter = PublishRateLimiter.DISABLED_RATE_LIMITER;
enableProducerReadForPublishRateLimiting();
}
Expand Down

0 comments on commit 1055ae3

Please sign in to comment.