forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix an unload non-existent topic (apache#3946)
*Motivation* Fixes apache#3935 When an unload operation is being made to an non-existent topic a null pointer exception is thrown due to bad handling exception on general catch clause. *Modifications* - Refactor getTopicReference() for a simplified version. - Simplify exception thrown when partitioned topics was not found. - Fix NPE when unload operation is being made with a non-existent topic. - Add test in order to assert unload on normal situation. - Add test to assert npe from unload with non existent topic.
- Loading branch information
Showing
2 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters