summary refs log tree commit diff
path: root/bin/zk-delete-dark-nodes
diff options
context:
space:
mode:
Diffstat (limited to 'bin/zk-delete-dark-nodes')
-rwxr-xr-xbin/zk-delete-dark-nodes12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/zk-delete-dark-nodes b/bin/zk-delete-dark-nodes
new file mode 100755
index 0000000..b5e995e
--- /dev/null
+++ b/bin/zk-delete-dark-nodes
@@ -0,0 +1,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