Replication gets stuck following a transient zookeeper error to remote peer cluster

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Adrian Muraru 2014-10-30 23:50:02 +02:00 committed by Andrew Purtell
parent b784f7db99
commit a1f59d8e1b
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ public class ReplicationSinkManager {
* @return a replication sink to replicate to
*/
public SinkPeer getReplicationSink() throws IOException {
if (endpoint.getLastRegionServerUpdate() > this.lastUpdateToPeers) {
LOG.info("Current list of sinks is out of date, updating");
if (endpoint.getLastRegionServerUpdate() > this.lastUpdateToPeers || sinks.isEmpty()) {
LOG.info("Current list of sinks is out of date or empty, updating");
chooseSinks();
}