Pomelongan opened a new pull request, #18288: URL: https://github.com/apache/pulsar/pull/18288
### Motivation In `org.apache.pulsar.broker.admin.AdminResource#internalCreatePartitionedTopic`: - some logical order can be optimized. For example, can first execute `validateNamespaceOperation` for permission verification. - some log printing can be merged.see line 596,605,638 https://github.com/apache/pulsar/blob/927a00e1917ac89c62c72911c35aad0fec190eee/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java#L595-L606 https://github.com/apache/pulsar/blob/927a00e1917ac89c62c72911c35aad0fec190eee/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java#L637-L639 ### Modifications Optimize the logical order and log printing of `org.apache.pulsar.broker.admin.AdminResource#internalCreatePartitionedTopic`. ### Verifying this change - [x] Make sure that the change passes the CI checks. This change is a trivial rework / code cleanup without any test coverage. ### Does this pull request potentially affect one of the following parts: *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] Anything that affects deployment ### 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: https://github.com/Pomelongan/pulsar/pull/12 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
