HBASE-14437 - ArithmeticException in ReplicationInterClusterEndpoint (Ram)
This commit is contained in:
parent
642273bc2a
commit
d0d79f46c4
|
@ -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…
Reference in New Issue