Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cleanup][broker] Override close method to avoid caching exception. #15529

Merged
merged 1 commit into from May 11, 2022

Conversation

Technoboy-
Copy link
Contributor

Motivation

#10384 has defined PublishRateLimiter to extend AutoCloseable, but its close method will throw exception, cause to cache it when updating the limiter.

I think we can override close method to avoid catching the exception everywhere.

Documentation

  • no-need-doc
    (Please explain why)

@Technoboy- Technoboy- self-assigned this May 10, 2022
@Technoboy- Technoboy- added type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use area/broker doc-not-needed Your PR changes do not impact docs labels May 10, 2022
@Technoboy- Technoboy- added this to the 2.11.0 milestone May 10, 2022
@Technoboy- Technoboy- requested review from lhotari, michaeljmarshall and eolivelli and removed request for michaeljmarshall May 11, 2022 02:02
@codelipenghui codelipenghui merged commit 526979a into apache:master May 11, 2022
codelipenghui pushed a commit that referenced this pull request May 20, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request May 23, 2022
mattisonchao pushed a commit that referenced this pull request May 25, 2022
@Technoboy- Technoboy- deleted the remove-exception-from-sign branch August 10, 2022 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.9.3 release/2.10.1 type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants