Class SimpleSysTest

java.lang.Object
org.apache.zookeeper.test.system.BaseSysTest
org.apache.zookeeper.test.system.SimpleSysTest
All Implemented Interfaces:
Watcher

public class SimpleSysTest extends BaseSysTest implements Watcher
This does a basic system test. It starts up an ensemble of servers and a set of clients. It makes sure that all the clients come up. It kills off servers while making a change and then ensures that all clients see the change. And then signals the clients to die and watches them disappear.
  • Constructor Details

    • SimpleSysTest

      public SimpleSysTest()
  • Method Details

    • testSimpleCase

      public void testSimpleCase() throws Exception
      This test checks the following: 1) All clients connect successfully 2) Half of the servers die (assuming odd number) and a write succeeds 3) All servers are restarted and cluster stays alive 4) Clients see a change by the server 5) Clients' ephemeral nodes are cleaned up
      Throws:
      Exception
    • process

      public void process(WatchedEvent event)
      Specified by:
      process in interface Watcher