zbentley commented on issue #11847:
URL: https://github.com/apache/pulsar/issues/11847#issuecomment-908797848
Interesting addendum: if *any* Client object is destroyed at global
destruction time, the hang no longer occurs.
So the workaround is straightforward, if odd: construct at least one global
Client--even if it's never connected or used.
For example, all of the example snippets work as expected if the line
`Client('')` is added to the bottom of each snippet.
Doing so is a bit messy because of
https://github.com/apache/pulsar/issues/11845, since if you construct that
global Client early on, all other Clients constructed in your program will
inherit its logging settings in addition to any of their own.
--
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]