ivankelly opened a new pull request #1230: ProxyForwardAuthDataTest shouldn't 
reuse pulsar client
URL: https://github.com/apache/incubator-pulsar/pull/1230
 
 
   This test was flaking due to the pulsar client being reused. The test
   starts a proxy service, subscribes to a topic, stops the proxy, starts
   a new proxy and tries to subscribe again.
   
   If using the same client for both connections, the client will have an
   open connection to the first proxy, which, when the proxy is stopped,
   will be closed by netty asynchronously. This can race with the second
   subscription attempt, and cause it to fail with
   ConnectionClosedException. Specifically, if the subscription attempt
   runs before the netty callback runs, the subscription attempt will try
   to subscribe on a dead connection.
   
   The immediate fix for this test, to stop the flaking, is just to use a
   different client for each attempt.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to