poorbarcode opened a new pull request, #24681: URL: https://github.com/apache/pulsar/pull/24681
### Motivation `branch-4.0` has such an issue, which occurs as follows. I have pushed a PR to fix it #24680 - Create a partitioned topic with 2 partitions - All partitions are deleted because the feature `brokerDeleteInactiveTopicsEnabled` is `true` - Try to get the topic-level policies; you will get a Topic not found error The master branch does not have the issue because #24225 have fixed it [here](https://github.com/apache/pulsar/pull/24225/files#diff-6902810fd24ff29ec34052bcc6a0de36d76107649148d945b80ec2be888e9042L734-R778) This PR is in order to add the same test as #24680 ### Modifications Add a new test `PartitionCreationTest.testGetPoliciesIfPartitionsNotCreated` ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: x -- 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. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org