Skip to content

Commit

Permalink
[fix][broker]Close publishLimiter when disable it (#15520)
Browse files Browse the repository at this point in the history
(cherry picked from commit e8c971a)
  • Loading branch information
AnonHxy authored and mattisonchao committed May 25, 2022
1 parent 6fd31d1 commit 42353c0
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -956,6 +956,9 @@ protected void updatePublishDispatcher(PublishRate publishRate) {
}
} 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 42353c0

Please sign in to comment.