Vanlightly commented on a change in pull request #11570:
URL: https://github.com/apache/pulsar/pull/11570#discussion_r683687015



##########
File path: pulsar-client-cpp/lib/PartitionedProducerImpl.cc
##########
@@ -209,7 +236,10 @@ void PartitionedProducerImpl::closeAsync(CloseCallback 
closeCallback) {
     // Here we don't need `producersMutex` to protect `producers_`, because 
`producers_` can only be increased
     // when `state_` is Ready
     for (auto& producer : producers_) {
-        if (!producer->isClosed()) {
+        if (!producer->isStarted()) {

Review comment:
       I am working on some changes to ensure these can be called concurrently 
and sane things happen.




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