You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2022/04/12 15:25:00 UTC
[jira] [Created] (ZOOKEEPER-4519) Testable interface should have a testableCloseSocket() method
Houston Putman created ZOOKEEPER-4519:
-----------------------------------------
Summary: Testable interface should have a testableCloseSocket() method
Key: ZOOKEEPER-4519
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4519
Project: ZooKeeper
Issue Type: Improvement
Components: java client
Reporter: Houston Putman
The {{ClientCnxn}} class has a protected function {{testableCloseSocket()}}, which allows applications to test how their system will respond if the Zookeeper socket connection is closed.
This would be a very easy feature to add to the {{Testable}} interface, as the {{ZookeeperTestable}} class has access to a {{ClientCnxn}} that it could easily pass the {{testableCloseSocket()}} call to. That way applications wanting to test this do not need to rely on the {{tests}} artifacts in order to use this method, as they currently do.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)