On 03/30/11 00:31, Peter Schuller wrote: > > set -e # important > touch /path/to/flagfile.tmp > nodetool -h localhost repair > mv /path/to/flagfile.tmp /path/to/flagfile > Note this script doesn't work if your repair takes hours, and in the middle of the repair cassandra was restarted, nodetool will exit and the flagfile will be updated. Another case, if repair hangs, and day later cassandra is restarted.
if nodetool returns an error this might work: nodetool -h localhost repair && touch /path/to/flagfile.tmp -- Karl