WJL3333 opened a new pull request, #18166: URL: https://github.com/apache/pulsar/pull/18166
Fixes #18165 ### Motivation Current request log use clientAppId for tracing client info. But when authentication is disabled. clientAppId always return null which makes it is difficult for problem tracing. This patch split caller for log tracing and for client role retrieve. ### Modifications the following usage are change from `clientAppId()` to `clientRole()` + `FunctionBase` + `SchemasResourceBase` + `TenantsBase` + `Functions` + `Worker` + `TopicsBase` + most unit test ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* This change is a trivial rework / code cleanup without any test coverage. This change added tests and can be verified as follows: ### 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 threading model - [ ] 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. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- 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]
