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:
parent
b784f7db99
commit
a1f59d8e1b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue