Re: Discuss about closing Pulsar resource

2022-05-26 Thread Nicolò Boschi
Hi, the initial intention of https://github.com/apache/pulsar/pull/15638 was about fixing thread leaks in tests which lead to Mockito weird behaviours. Now a few executors do not wait for thread termination and it makes the tests unstable, mainly with mocked objects. The AsyncCloseable addresses a

Discuss about closing Pulsar resource

2022-05-25 Thread guo jiwei
Hi community: In the past few days, when investigating the problem of pulsar close being hung, I saw that many resources are called synchronously and have no timeout when they are closed. To solve this problem, patch-15638 , add the async close metho