BrianGallew / cassandra_range_repair

python script to repair the primary range of a node in N discrete steps
MIT License
109 stars 47 forks source link

Support for exponential retry on failure #38

Closed JensRantil closed 8 years ago

JensRantil commented 8 years ago

This is useful when there are datacenters with somewhat unstable connections. Previously range_repair.py stopped running if repair failed. Default behaviour is still the same (that is, fail on first), however this pull request introduces support for retries with exponential backoff.

Additional comments:

What do you think? Tests pass (except for #37).

JensRantil commented 8 years ago

Retry in action in production:

Shell that does retry

Works like a charm. 🎉