You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/11/17 07:24:40 UTC

[GitHub] [pulsar] Jason918 commented on pull request #12779: [Java Client] Use epoch to version producer's cnx to prevent early de…

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


   > > 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.
   
   Great. Thanks for the detailed explanation. 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org