Skip to content

[broker]Fix subscribeRateLimiter not close#15457

Merged
codelipenghui merged 3 commits intoapache:masterfrom
AnonHxy:fix_subscribeRateLimiter_close
May 7, 2022
Merged

[broker]Fix subscribeRateLimiter not close#15457
codelipenghui merged 3 commits intoapache:masterfrom
AnonHxy:fix_subscribeRateLimiter_close

Conversation

@AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented May 5, 2022

Motivation

Close subscribeRateLimiter if it changes from non-empty to empty, when namespace level or topic level or broker level policies updated

Modifications

All modifications are located at org.apache.pulsar.broker.service.persistent.PersistentTopic

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 5, 2022
@AnonHxy AnonHxy force-pushed the fix_subscribeRateLimiter_close branch from 3d63e84 to 7d08241 Compare May 5, 2022 19:12
@AnonHxy AnonHxy force-pushed the fix_subscribeRateLimiter_close branch from 7d08241 to 416a733 Compare May 6, 2022 02:19
@gaozhangmin gaozhangmin requested review from eolivelli and michaeljmarshall and removed request for michaeljmarshall May 6, 2022 05:04
@gaozhangmin gaozhangmin added this to the 2.11.0 milestone May 6, 2022
@gaozhangmin gaozhangmin requested review from Jason918, eolivelli and michaeljmarshall and removed request for eolivelli May 6, 2022 05:04
Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AnonHxy thanks for your contributions. I left a few comments.

@poorbarcode
Copy link
Contributor

Method updateSubscribeRateLimiter should complement unit tests. Thanks.

@AnonHxy
Copy link
Contributor Author

AnonHxy commented May 6, 2022

PTAL again, thx @poorbarcode @michaeljmarshall

Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AnonHxy
Copy link
Contributor Author

AnonHxy commented May 7, 2022

/pulsarbot run-failure-checks

Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants