question: public void causeSomeChaos ( ) throws Exception { if ( chaosRandom . nextBoolean ( ) ) { if ( ! deadPool . isEmpty ( ) ) { int index = chaosRandom . nextInt ( deadPool . size ( ) ) ; JettySolrRunner jetty = deadPool . get ( index ) . jetty ; if ( jetty . isStopped ( ) && ! ChaosMonkey . start ( jetty ) ) { return ; } deadPool . remove ( index ) ; starts . incrementAndGet ( ) ; return ; } } int rnd = chaosRandom . nextInt ( 10 ) ; if ( expireSessions && rnd < EXPIRE_PERCENT ) { expireRandomSession ( ) ; } if ( causeConnectionLoss && rnd < CONLOSS_PERCENT ) { randomConnectionLoss ( ) ; } CloudJettyRunner cjetty ; if ( chaosRandom . nextBoolean ( ) ) { cjetty = stopRandomShard ( ) ; } else { cjetty = killRandomShard ( ) ; } if ( cjetty == null ) { } else { deadPool . add ( cjetty ) ; } }
target:  causes some randomly selected chaos