lhotari commented on issue #10603:
URL: https://github.com/apache/pulsar/issues/10603#issuecomment-842149376
> this issue is caused by:
>
> when topic and namespace publish rate are not set or its value <=0,
`updatePublishDispatcher` would return
`PublishRateLimiter.DISABLED_RATE_LIMITER`. which caused
> `@Override public boolean isTopicPublishRateExceeded(int numberMessages,
int bytes) { return preciseTopicPublishRateLimitingEnable &&
!this.topicPublishRateLimiter.tryAcquire(numberMessages, bytes); }`
> always true.
@gaozhangmin Thanks for pointing that out. Yes, it's a clear issue. I'll
include the fix to #10384 since it fixes various other preciseTopicPublishRate
limiter issues and those fixes are needed for using the feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]