Skip to content

Instantly share code, notes, and snippets.

@codefromthecrypt
Created April 24, 2015 15:43
Show Gist options
  • Save codefromthecrypt/cfbdc2162a58e25158c6 to your computer and use it in GitHub Desktop.
Save codefromthecrypt/cfbdc2162a58e25158c6 to your computer and use it in GitHub Desktop.
So you think you're resilient?
# 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