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 when deleting topic with NotFoundException, do not return to client. #13203

Merged
merged 1 commit into from
Dec 11, 2021

Conversation

Technoboy-
Copy link
Contributor

Fix #12554.

Motivation

When deleting the topic, the user may exec cmd on broker-a, and everything goes well (means : asyncGetManagedLedgerInfo completes successfully) and decide to run store.removeManagedLedger, but zk data is deleted by broker-b at this time, then it will throw NotFoundException (wrap KeeperException$NoNodeException) to client.
I think this exception should treat as the delete topic action perform right.

Documentation

  • no-need-doc

@Technoboy- Technoboy- self-assigned this Dec 9, 2021
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 9, 2021
Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

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

I think we can add a unit test with the mocked deleteTopic method?

@Technoboy-
Copy link
Contributor Author

I think we can add a unit test with the mocked deleteTopic method?

Ok, add related test.

@Technoboy-
Copy link
Contributor Author

/pulsarbot run-failure-checks

@merlimat merlimat merged commit bd68b6f into apache:master Dec 11, 2021
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
codelipenghui pushed a commit that referenced this pull request Dec 21, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 21, 2021
zymap pushed a commit that referenced this pull request Dec 23, 2021
@zymap zymap added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Dec 23, 2021
@Technoboy- Technoboy- deleted the add-not-found-exception branch August 10, 2022 05:50
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.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.3 release/2.9.2
Projects
None yet
6 participants