BewareMyPower opened a new pull request #10601: URL: https://github.com/apache/pulsar/pull/10601
Fixes #8813 ### Motivation Actually #8818 didn't fix the issue. The reason is when `PulsarAdmin` tries to get partition metadata, the `checkAllowAutoCreation` query param is false, so the topic existence check will never be performed. ### Modifications - Check if the topic exists when the partition's metadata is 0 and `checkAllowAutoCreation` is false. See comments for detail explanations. - Change the current tests to make sure the check works. ### Verifying this change - [ ] Make sure that the change passes the CI checks. This change is already covered by existing tests, such as *AdminApiTest#partitionedTopics*. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org