(Windows) force range-based repair to non-sequential mode

patch by Josh McKenzie; reviewed by jbellis for CASSANDRA-7541
This commit is contained in:
Jonathan Ellis 2014-07-14 11:11:07 -05:00
parent a4544615df
commit 1630ebf6af
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2.0.10
* (Windows) force range-based repair to non-sequential mode (CASSANDRA-7541)
* Fix range merging when DES scores are zero (CASSANDRA-7535)
* Warn when SSL certificates have expired (CASSANDRA-7528)
* Workaround JVM NPE on JMX bind failure (CASSANDRA-7254)

View File

@ -2544,6 +2544,12 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
logger.info("starting user-requested repair of range {} for keyspace {} and column families {}",
repairingRange, keyspaceName, columnFamilies);
if (!FBUtilities.isUnix() && isSequential)
{
logger.warn("Snapshot-based repair is not yet supported on Windows. Reverting to parallel repair.");
isSequential = false;
}
return forceRepairAsync(keyspaceName, isSequential, dataCenters, hosts, repairingRange, columnFamilies);
}