Skip to content

Commit

Permalink
check for null when a host dies
Browse files Browse the repository at this point in the history
  • Loading branch information
zznate committed Apr 14, 2011
1 parent ba650e1 commit 7a53f8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()});
Expand Down

0 comments on commit 7a53f8d

Please sign in to comment.