You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/08/31 00:20:40 UTC

[GitHub] [pulsar] zbentley commented on issue #11847: [2.8.0] Python programs hang uninterruptibly on shutdown if pulsar clients are used anywhere non-global with the `logger` argument

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org