Created
April 24, 2015 15:43
-
-
Save codefromthecrypt/cfbdc2162a58e25158c6 to your computer and use it in GitHub Desktop.
So you think you're resilient?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fun times with byteman http://byteman.jboss.org/documentation.html | |
cat << 'EOF' > chaos.btm | |
RULE throw ConnectionLoss on ZooKeeper.getData entry | |
CLASS org.apache.zookeeper.ZooKeeper | |
METHOD getData | |
AT ENTRY | |
IF true | |
DO traceln("ZK needs more problems"); | |
throw new org.apache.zookeeper.KeeperException$ConnectionLossException() | |
ENDRULE | |
EOF | |
bmsubmit.sh chaos.btm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment