Repository: curator Updated Branches: refs/heads/CURATOR-3.0 2d487836f -> b969e33af
ChaosMonkeyCnxnFactory didn't know about create2 opcode Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/b969e33a Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/b969e33a Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/b969e33a Branch: refs/heads/CURATOR-3.0 Commit: b969e33af4cb9c6d7542a7162263deffd051a7d9 Parents: 2d48783 Author: randgalt <randg...@apache.org> Authored: Tue Sep 8 12:49:26 2015 -0500 Committer: randgalt <randg...@apache.org> Committed: Tue Sep 8 12:49:26 2015 -0500 ---------------------------------------------------------------------- .../curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/b969e33a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java index ce5b23d..1c0e50e 100644 --- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java +++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java @@ -89,7 +89,7 @@ public class ChaosMonkeyCnxnFactory extends NIOServerCnxnFactory log.debug("Applied : " + si.toString()); super.submitRequest(si); // Raise an error if a lock is created - if ( si.type == ZooDefs.OpCode.create ) + if ( (si.type == ZooDefs.OpCode.create) || (si.type == ZooDefs.OpCode.create2) ) { CreateRequest createRequest = new CreateRequest(); try