Permalink
Browse files

added limit on how long client pool can be exhausted

  • Loading branch information...
1 parent 31cbcc3 commit e738a85e89931490d7cf277727a1b57ed400341a @shaunkalley shaunkalley committed Sep 6, 2013
@@ -277,8 +277,8 @@ public void operateWithFailover(Operation<?> op) throws HectorException {
if (hostPools.isEmpty()) {
throw he;
}
- retryable = op.failoverPolicy.shouldRetryFor(HPoolExhaustedException.class);
excludeHosts.add(pool.getCassandraHost());
+ retryable = op.failoverPolicy.shouldRetryFor(HPoolExhaustedException.class);
monitor.incCounter(Counter.POOL_EXHAUSTED);
}
} else if ( he instanceof HPoolRecoverableException ) {

0 comments on commit e738a85

Please sign in to comment.