Skip to content

[Cherry-pick] Use get instead of join to avoid getting stuck - #12110

Merged
codelipenghui merged 1 commit into
apache:branch-2.8from
Technoboy-:cherry-pick-11597
Sep 24, 2021
Merged

[Cherry-pick] Use get instead of join to avoid getting stuck#12110
codelipenghui merged 1 commit into
apache:branch-2.8from
Technoboy-:cherry-pick-11597

Conversation

@Technoboy-

Copy link
Copy Markdown
Contributor

Cherry pick #11597 .

Motivation

join() will not time out, when network jitter occurs, it is easy to cause the thread to get stuck forever

Modifications

Use get(timeout) instead of join() to avoid getting stuck

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm

@Technoboy-

Copy link
Copy Markdown
Contributor Author

As AdminResource and ResourceQuotasBase are not using CompletableFuture, so don't need to modify.

@Technoboy-

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@Technoboy-

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@Anonymitaet Anonymitaet added the doc-not-needed Your PR changes do not impact docs label Sep 22, 2021
@codelipenghui
codelipenghui merged commit 5de46f9 into apache:branch-2.8 Sep 24, 2021
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Oct 27, 2021
@Technoboy-
Technoboy- deleted the cherry-pick-11597 branch August 10, 2022 05:51
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.

4 participants