congbobo184 commented on issue #13103:
URL: https://github.com/apache/pulsar/issues/13103#issuecomment-1237647178

   @syhily  hi
   as you can see the jstack, thread block in `at 
org.apache.pulsar.broker.systopic.SystemTopicClientBase.close(SystemTopicClientBase.java:100)`,
 this close method is 
   
   ```
           List<CompletableFuture<Void>> futures = new ArrayList<>();
           List<Writer<T>> tempWriters = Lists.newArrayList(writers);
           tempWriters.forEach(writer -> futures.add(writer.closeAsync()));
           List<Reader<T>> tempReaders = Lists.newArrayList(readers);
           tempReaders.forEach(reader -> futures.add(reader.closeAsync()));
           writers.clear();
           readers.clear();
           return FutureUtil.waitForAll(futures);
   ```
   only close producers or consumers can block the thread.
   https://github.com/apache/pulsar/pull/17051 has to fix the close produce or 
consumer block thread problem, and I reproduce it in v2.10.0. carry this fix, I 
can't reproduce. can you test it with this fix? Maybe the problem can be solved


-- 
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]

Reply via email to