spotify / cassandra-reaper

Software to run automated repairs of cassandra
235 stars 60 forks source link

Clear snapshots on session failure #103

Closed rzvoncek closed 9 years ago

rzvoncek commented 9 years ago

In case a repair session fails, there is a chance the snapshots created for that particular session don't get cleaned up. This change adds an attempt to explicitly clear the snapshots.

rzvoncek commented 9 years ago

Did rename the method. However, there is no way of telling if a snapshot was cleared or not, or if an attempt was made to clear a non-existing snapshot. Cassandra does not expose that information. The only thing that happens it that Cassandra logs a debug line when snapshots have been cleared.

Bj0rnen commented 9 years ago

:+1: