Skip to content

Commit

Permalink
[fix][broker] Fix NPE cause by topic publish rate limiter. (apache#20302
Browse files Browse the repository at this point in the history
)

Co-authored-by: druidliu <druidliu@tencent.com>
  • Loading branch information
dragonls and druidliu committed May 11, 2023
1 parent b07f2a9 commit 4b24c9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public abstract class AbstractTopic implements Topic, TopicPolicyListener<TopicP

protected volatile Boolean isAllowAutoUpdateSchema;

protected volatile PublishRateLimiter topicPublishRateLimiter;
protected volatile PublishRateLimiter topicPublishRateLimiter = PublishRateLimiter.DISABLED_RATE_LIMITER;
private final Object topicPublishRateLimiterLock = new Object();

protected volatile ResourceGroupPublishLimiter resourceGroupPublishLimiter;
Expand Down

0 comments on commit 4b24c9e

Please sign in to comment.