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.
fix wrong result for looking up a non-exist topic by rest api (apache…
…#13055) Fixes apache#13028 ### Motivation For now, the result of the `lookup` command for a topic not existing by the rest API will return a brokerUrl. This pull request resolves this problem. ### Modifications Add topic exist check before get the brokerUrl 1. if not exist, return a ResetException with status code NOT_FOUND 2. if exist, get the brokerUrl ### Verifying this change This change added tests and can be verified as follows: HttpTopicLookupv2Test.testLookupTopicNotExist
- Loading branch information
1 parent
1891f6e
commit c94c81c
Showing
5 changed files
with
104 additions
and
49 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
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
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