michaeljmarshall commented on pull request #12779:
URL: https://github.com/apache/pulsar/pull/12779#issuecomment-971205083


   > Can you add a test to cover this case?
   Not sure if it's easy to do.
   
   @Jason918 - as I mentioned in the PR description, I was only able to get a 
unit test to consistently reproduce the underlying issue by modifying the 
client code (scheduling a delay for one of the callbacks). I am pretty sure we 
have tests that verify producer (re)connection, which will verify that this 
code path works for the happy path. Also, I verified that this change correctly 
removes the race condition by testing in the k8s environment when I discovered 
the race. At this point, I'm not exactly sure how to add a test, but I am open 
to suggestions.


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