Monday, January 29, 2018

Stopping nodetool repair in Cassandra

If you see multiple repair process, when you give nodetool tpstats implies that repair process was running may be initiated by nodetool with full and/or nodetool -pr and/or datastax-opscenter(if initiated in opscenter).

Usually repairs will be failed by throwing like "validation failed" so there is no way to directly stop the repairs if it still showing in nodetool tpstats

This can be stopped by, performed by calling forceTerminateAllRepairSessions in the StorageServiceMBean via JMX. From there you would need to run the "nodetool stop VALIDATION" on each node to kill the validation compactions.



In system.log file if it shows "primary range: true" implies repair is started with -pr and if system.log shows  primary range: false implies repair is started with -full option.

***

No comments:

Post a Comment