Amichai Rothman created ARIES-2200:
--------------------------------------

             Summary: ZooKeeper discovery concurrency issue may close the wrong 
client
                 Key: ARIES-2200
                 URL: https://issues.apache.org/jira/browse/ARIES-2200
             Project: Aries
          Issue Type: New Feature
          Components: Remote Service Admin
    Affects Versions: rsa-1.16.1
            Reporter: Amichai Rothman


The ZooKeeper discovery's ClientManager.stop() method callsĀ 
zkClient.close() asynchronously, where zkClient is an instance field. However, 
by the time the async task runs, this reference could have already been 
replaced with a new client instance, e.g. in ClientManager.process handling of 
expired sessions which calls stop and immediately afterwards creates a new 
client. In such a case the close() call could inadvertently be invoked on the 
new client thus making it unusable, while leaving the old client unclosed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to