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

Fix the useless retry when the maximum number of subscriptions is reached #9991

Merged
merged 4 commits into from
Mar 23, 2021

Conversation

315157973
Copy link
Contributor

@315157973 315157973 commented Mar 20, 2021

Motivation

When the maximum number of subscriptions is reached, due to the long default value of operationTimeout, the client will keep retrying and get stuck for a long time.
If a NotAllowedException is returned, the client will not continue to retry and will fail directly.

Test

Can the test fail in a short time

@codelipenghui
Copy link
Contributor

@315157973 Sorry, could you please help add a test to avoid the regression?

@codelipenghui codelipenghui added release/2.7.2 type/bug The PR fixed a bug or issue reported a bug labels Mar 22, 2021
@codelipenghui codelipenghui added this to the 2.8.0 milestone Mar 22, 2021
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@sijie sijie merged commit 31c5fb5 into apache:master Mar 23, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Mar 24, 2021
codelipenghui pushed a commit that referenced this pull request Mar 24, 2021
…ched (#9991)

When the maximum number of subscriptions is reached, due to the long default value of operationTimeout, the client will keep retrying and get stuck for a long time.
If a NotAllowedException is returned, the client will not continue to retry and will fail directly.

Can the test fail in a short time

(cherry picked from commit 31c5fb5)
@315157973 315157973 deleted the unit-test2 branch May 11, 2021 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants