summary refs log tree commit diff
path: root/bin/zk-delete-dark-nodes
blob: b5e995e10baeec24db8d3704b1017bf422a46666 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -x
set -e

members=$(echo "ls /messaging/distributedlog/EventBus/" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin)

for m in $members; do
  if [[ $m =~ ^eventbus_system_loadtest_8_ ]]; then
    echo "rmr /messaging/distributedlog/EventBus/$m" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin
  fi
done