nicoloboschi opened a new pull request, #19987: URL: https://github.com/apache/pulsar/pull/19987
### Motivation In the broker logs this malformed message could be print by the broker ``` [main-EventThread] INFO org.apache.pulsar.broker.PulsarService - This broker is a follower. Current leader is Optional.empty ``` ### Modifications Fix proper message without calling Optional.toString ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Does this pull request potentially affect one of the following parts: ### 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 --> -- 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]
