Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check for null when a host dies

  • Loading branch information...
commit 7a53f8d247dde5057854632d7fffe155787c6dd9 1 parent ba650e1
zznate authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/main/java/com/riptano/cassandra/stress/InsertCommand.java
3  src/main/java/com/riptano/cassandra/stress/InsertCommand.java
View
@@ -52,7 +52,8 @@ public Void call() throws Exception {
try {
MutationResult mr = mutator.execute();
LatencyTracker writeCount = commandRunner.latencies.get(mr.getHostUsed());
- writeCount.addMicro(mr.getExecutionTimeMicro());
+ if ( writeCount != null )
+ writeCount.addMicro(mr.getExecutionTimeMicro());
mutator.discardPendingMutations();
log.info("executed batch of {}. {} of {} complete", new Object[]{commandArgs.batchSize, rows, commandArgs.getKeysPerThread()});
Please sign in to comment.
Something went wrong with that request. Please try again.