Kevin Risden created KNOX-2121:
----------------------------------

             Summary: Zookeeper - Reduce amount of resources required to run 
tests
                 Key: KNOX-2121
                 URL: https://issues.apache.org/jira/browse/KNOX-2121
             Project: Apache Knox
          Issue Type: Test
          Components: Tests
            Reporter: Kevin Risden
            Assignee: Kevin Risden
             Fix For: 1.4.0


Currently, most of the Zookeeper tests spin up 3 test instances using the 
curator TestingCluster framework. Under heavily loaded test machines or running 
a bunch of tests in parallel, the nodes don't start quick enough. Curator sets 
this timeout value based on hostname lookup time. 

Instead of spinning up multiple Zookeeper instances, we can test with just a 
single instance. There aren't any tests that rely on multiple ZK instances to 
be running.

https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingQuorumPeerMain.java#L76
https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java#L74



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to