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][broker] Fix potential can't remove producer/reader reference #17559

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

Technoboy-
Copy link
Contributor

Motivation

If the producer/reader close with the exception, there may exist references that can't remove from the list.

Documentation

  • doc-not-needed
    (Please explain why)

@Technoboy- Technoboy- self-assigned this Sep 9, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Sep 9, 2022
@Technoboy- Technoboy- added type/bug The PR fixed a bug or issue reported a bug area/broker labels Sep 9, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 9, 2022
@Technoboy- Technoboy- closed this Sep 11, 2022
@Technoboy- Technoboy- reopened this Sep 11, 2022
}

@Override
public CompletableFuture<Void> closeAsync() {
return reader.closeAsync().thenCompose(v -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is key point. The previous thenCompose is replaced by thenApply just to save CompletableFuture. Right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes.

@Technoboy- Technoboy- merged commit 1395482 into apache:master Sep 13, 2022
@Technoboy- Technoboy- modified the milestones: 2.12.0, 2.11.0 Sep 13, 2022
@Technoboy- Technoboy- deleted the cleanup-policy-client branch September 14, 2023 11:33
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.11 doc-not-needed Your PR changes do not impact docs 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.

4 participants