HBASE-14437 - ArithmeticException in ReplicationInterClusterEndpoint (Ram)
This commit is contained in:
parent
526520de0a
commit
cfce91e514
@ -162,6 +162,9 @@ public class HBaseInterClusterReplicationEndpoint extends HBaseReplicationEndpoi
|
||||
peersSelected = true;
|
||||
}
|
||||
|
||||
if (replicationSinkMgr.getSinks().size() == 0) {
|
||||
return false;
|
||||
}
|
||||
// minimum of: configured threads, number of 100-waledit batches,
|
||||
// and number of current sinks
|
||||
int n = Math.min(Math.min(this.maxThreads, entries.size()/100+1),
|
||||
|
Loading…
x
Reference in New Issue
Block a user