You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Thawan Kooburat (JIRA)" <ji...@apache.org> on 2013/07/08 19:57:49 UTC

[jira] [Created] (ZOOKEEPER-1722) Make ZooKeeper clients more test friendly

Thawan Kooburat created ZOOKEEPER-1722:
------------------------------------------

             Summary: Make ZooKeeper clients more test friendly
                 Key: ZOOKEEPER-1722
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1722
             Project: ZooKeeper
          Issue Type: Improvement
          Components: c client, java client
            Reporter: Thawan Kooburat


We should be able to expose a few more API calls that allow user write unit tests that cover various failure scenarios (similar to the TestableZookeer in zookeeper test). This should also minimize the effort on setting the test framework for application developer

Here is some example calls that we should provide.
1. zookeeper_close() that don't actually send close request to the server:     This can be used to simulate a client crash without actually crashing the test program.
2. Allow client to trigger CONNECTION_LOSS or SESSSION_EXPIRE event: This will allow the user to test their watchers and callback (and possible race condition)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira