diff --git a/build.xml b/build.xml
index 4dc6e995cf..defee3d4b0 100644
--- a/build.xml
+++ b/build.xml
@@ -363,11 +363,10 @@
-
+
-
diff --git a/src/java/org/apache/cassandra/io/sstable/Descriptor.java b/src/java/org/apache/cassandra/io/sstable/Descriptor.java
index ec79f675ea..e344f916e7 100644
--- a/src/java/org/apache/cassandra/io/sstable/Descriptor.java
+++ b/src/java/org/apache/cassandra/io/sstable/Descriptor.java
@@ -270,7 +270,7 @@ public static Pair fromFilename(File directory, String name,
nexttok = tokenStack.pop();
// generation OR format type
SSTableFormat.Type fmt = SSTableFormat.Type.LEGACY;
- if (!CharMatcher.DIGIT.matchesAllOf(nexttok))
+ if (!CharMatcher.inRange('0', '9').matchesAllOf(nexttok))
{
fmt = SSTableFormat.Type.validate(nexttok);
nexttok = tokenStack.pop();
diff --git a/src/java/org/apache/cassandra/io/sstable/format/SSTableFormat.java b/src/java/org/apache/cassandra/io/sstable/format/SSTableFormat.java
index 43919469fd..8f254fcb93 100644
--- a/src/java/org/apache/cassandra/io/sstable/format/SSTableFormat.java
+++ b/src/java/org/apache/cassandra/io/sstable/format/SSTableFormat.java
@@ -60,7 +60,7 @@ private Type(String name, SSTableFormat info)
{
//Since format comes right after generation
//we disallow formats with numeric names
- assert !CharMatcher.DIGIT.matchesAllOf(name);
+ assert !CharMatcher.inRange('0', '9').matchesAllOf(name);
this.name = name;
this.info = info;
diff --git a/src/java/org/apache/cassandra/locator/InetAddressAndPort.java b/src/java/org/apache/cassandra/locator/InetAddressAndPort.java
index 6daa2e132c..584e13b424 100644
--- a/src/java/org/apache/cassandra/locator/InetAddressAndPort.java
+++ b/src/java/org/apache/cassandra/locator/InetAddressAndPort.java
@@ -154,7 +154,7 @@ public static InetAddressAndPort getByNameOverrideDefaults(String name, Integer
{
port = hap.getPort();
}
- return getByAddressOverrideDefaults(InetAddress.getByName(hap.getHostText()), port);
+ return getByAddressOverrideDefaults(InetAddress.getByName(hap.getHost()), port);
}
public static InetAddressAndPort getByAddress(byte[] address) throws UnknownHostException
diff --git a/src/java/org/apache/cassandra/repair/RepairJob.java b/src/java/org/apache/cassandra/repair/RepairJob.java
index 6f89a86ae2..c04f79ad0b 100644
--- a/src/java/org/apache/cassandra/repair/RepairJob.java
+++ b/src/java/org/apache/cassandra/repair/RepairJob.java
@@ -87,7 +87,7 @@ public void run()
}
// When all snapshot complete, send validation requests
ListenableFuture> allSnapshotTasks = Futures.allAsList(snapshotTasks);
- validations = Futures.transform(allSnapshotTasks, new AsyncFunction, List>()
+ validations = Futures.transformAsync(allSnapshotTasks, new AsyncFunction, List>()
{
public ListenableFuture> apply(List endpoints)
{
@@ -105,7 +105,7 @@ public ListenableFuture> apply(List endpoints)
}
// When all validations complete, submit sync tasks
- ListenableFuture> syncResults = Futures.transform(validations, new AsyncFunction, List>()
+ ListenableFuture> syncResults = Futures.transformAsync(validations, new AsyncFunction, List>()
{
public ListenableFuture> apply(List trees)
{
@@ -228,7 +228,7 @@ public void onSuccess(TreeResponse result)
// failure is handled at root of job chain
public void onFailure(Throwable t) {}
- });
+ }, taskExecutor);
currentTask = nextTask;
}
// start running tasks
@@ -285,7 +285,7 @@ public void onSuccess(TreeResponse result)
// failure is handled at root of job chain
public void onFailure(Throwable t) {}
- });
+ }, taskExecutor);
currentTask = nextTask;
}
// start running tasks
diff --git a/src/java/org/apache/cassandra/repair/RepairRunnable.java b/src/java/org/apache/cassandra/repair/RepairRunnable.java
index 7a9590becc..c68378a5eb 100644
--- a/src/java/org/apache/cassandra/repair/RepairRunnable.java
+++ b/src/java/org/apache/cassandra/repair/RepairRunnable.java
@@ -309,7 +309,7 @@ public void onFailure(Throwable t)
totalProgress,
message));
}
- });
+ }, executor);
futures.add(session);
}
@@ -318,7 +318,7 @@ public void onFailure(Throwable t)
final Collection> successfulRanges = new ArrayList<>();
final AtomicBoolean hasFailure = new AtomicBoolean();
final ListenableFuture> allSessions = Futures.successfulAsList(futures);
- ListenableFuture anticompactionResult = Futures.transform(allSessions, new AsyncFunction, Object>()
+ ListenableFuture anticompactionResult = Futures.transformAsync(allSessions, new AsyncFunction, Object>()
{
@SuppressWarnings("unchecked")
public ListenableFuture apply(List results)
@@ -337,7 +337,7 @@ public ListenableFuture apply(List results)
}
return ActiveRepairService.instance.finishParentSession(parentSession, allNeighbors, successfulRanges);
}
- });
+ }, executor);
Futures.addCallback(anticompactionResult, new FutureCallback