lordcheng10 commented on PR #18633: URL: https://github.com/apache/pulsar/pull/18633#issuecomment-1327983887
> > When the 1121 line of code is executed, the consumers list may be empty > > i wonder why this will happen? is there some race-condition here ? For example: The test1 topic has 10 partitions, and the handleSubscribeOneTopicError method is executed for each partition. Assuming that test1-partition-0 executes the handleSubscribeOneTopicError method first, all the consumers collection will be removed, so that when the subsequent partition executes handleSubscribeOneTopicError, the corresponding subscribeResult will not be completed, resulting in blocking: https://github.com/apache/pulsar/blob/006559dbfa5613e4b4b622416375e5bcbd1d580d/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L1130-L1139 -- 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]
