[20/50] [abbrv] hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish Singhi Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8a4b2b54 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8a4b2b54 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8a4b2b54 Branch: refs/heads/branch-1.3 Commit: 8a4b2b54cdadfbe2ee730733f10bd3ec57b05340 Parents: 5c799c1 Author: Ashish Singhi Authored: Sun Feb 4 18:24:32 2018 +0530 Committer: Andrew Purtell Committed: Wed Dec 12 18:08:18 2018 -0800 -- .../replication/regionserver/ReplicationSourceManager.java| 7 +++ 1 file changed, 7 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/8a4b2b54/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index c99d15c..8d19e22 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -58,6 +58,7 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; @@ -735,6 +736,12 @@ public class ReplicationSourceManager implements ReplicationListener { replicationQueues.removeQueue(peerId); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer " + actualPeerId + " is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer."); +continue; + } // track sources in walsByIdRecoveredQueues Map> walsByGroup = new HashMap>(); walsByIdRecoveredQueues.put(peerId, walsByGroup);
hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
Repository: hbase Updated Branches: refs/heads/branch-1.4 1eef181a5 -> bde2b69a4 HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bde2b69a Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bde2b69a Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bde2b69a Branch: refs/heads/branch-1.4 Commit: bde2b69a49470685fda59b883435d4421865999f Parents: 1eef181 Author: Ashish Singhi Authored: Sun Feb 4 18:24:32 2018 +0530 Committer: Andrew Purtell Committed: Tue Feb 6 16:01:15 2018 -0800 -- .../replication/regionserver/ReplicationSourceManager.java| 7 +++ 1 file changed, 7 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/bde2b69a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index 74dded7..5686fa6 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -58,6 +58,7 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; @@ -736,6 +737,12 @@ public class ReplicationSourceManager implements ReplicationListener { replicationQueues.removeQueue(peerId); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer " + actualPeerId + " is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer."); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap (); walsByIdRecoveredQueues.put(peerId, walsByGroup);
[15/28] hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/397d3473 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/397d3473 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/397d3473 Branch: refs/heads/HBASE-19064 Commit: 397d34736e63d7661a2f01524f8b302e1309d40f Parents: b0e998f Author: Ashish Singhi Authored: Sun Feb 4 17:52:38 2018 +0530 Committer: Ashish Singhi Committed: Sun Feb 4 17:52:38 2018 +0530 -- .../replication/regionserver/ReplicationSourceManager.java | 8 1 file changed, 8 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/397d3473/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index 2147214..6e87563 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -55,6 +55,7 @@ import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; import org.apache.hadoop.hbase.replication.ReplicationQueueStorage; @@ -747,6 +748,13 @@ public class ReplicationSourceManager implements ReplicationListener { abortWhenFail(() -> queueStorage.removeQueue(server.getServerName(), queueId)); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer {} is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer.", + actualPeerId); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap<>(); walsByIdRecoveredQueues.put(queueId, walsByGroup);
[01/42] hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-19397-branch-2 88c4aa7ad -> f03b19164 (forced update) HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2d5b36d1 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2d5b36d1 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2d5b36d1 Branch: refs/heads/HBASE-19397-branch-2 Commit: 2d5b36d194b90d4a43505c094464130506a079f6 Parents: 3b603d2 Author: Ashish Singhi Authored: Sun Feb 4 18:12:46 2018 +0530 Committer: Ashish Singhi Committed: Sun Feb 4 18:12:46 2018 +0530 -- .../replication/regionserver/ReplicationSourceManager.java | 8 1 file changed, 8 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/2d5b36d1/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index cbbfca0..c0c2333 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; @@ -739,6 +740,13 @@ public class ReplicationSourceManager implements ReplicationListener { replicationQueues.removeQueue(peerId); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer {} is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer.", + actualPeerId); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap<>(); walsByIdRecoveredQueues.put(peerId, walsByGroup);
hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
Repository: hbase Updated Branches: refs/heads/branch-1 a55f2c759 -> bdeab9319 HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bdeab931 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bdeab931 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bdeab931 Branch: refs/heads/branch-1 Commit: bdeab93196a247c7e3dcb090f8288de0050c5f24 Parents: a55f2c7 Author: Ashish Singhi Authored: Sun Feb 4 18:24:32 2018 +0530 Committer: Ashish Singhi Committed: Sun Feb 4 18:24:32 2018 +0530 -- .../replication/regionserver/ReplicationSourceManager.java| 7 +++ 1 file changed, 7 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/bdeab931/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index 77fd837..6ec30de 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -63,6 +63,7 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; @@ -754,6 +755,12 @@ public class ReplicationSourceManager implements ReplicationListener { replicationQueues.removeQueue(peerId); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer " + actualPeerId + " is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer."); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap (); walsByIdRecoveredQueues.put(peerId, walsByGroup);
hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
Repository: hbase Updated Branches: refs/heads/branch-2 3b603d2c0 -> 2d5b36d19 HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2d5b36d1 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2d5b36d1 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2d5b36d1 Branch: refs/heads/branch-2 Commit: 2d5b36d194b90d4a43505c094464130506a079f6 Parents: 3b603d2 Author: Ashish Singhi Authored: Sun Feb 4 18:12:46 2018 +0530 Committer: Ashish Singhi Committed: Sun Feb 4 18:12:46 2018 +0530 -- .../replication/regionserver/ReplicationSourceManager.java | 8 1 file changed, 8 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/2d5b36d1/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index cbbfca0..c0c2333 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.replication.ReplicationEndpoint; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; @@ -739,6 +740,13 @@ public class ReplicationSourceManager implements ReplicationListener { replicationQueues.removeQueue(peerId); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer {} is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer.", + actualPeerId); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap<>(); walsByIdRecoveredQueues.put(peerId, walsByGroup);
hbase git commit: HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled
Repository: hbase Updated Branches: refs/heads/master b0e998f2a -> 397d34736 HBASE-19905 ReplicationSyncUp tool will not exit if a peer replication is disabled Signed-off-by: Ashish SinghiProject: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/397d3473 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/397d3473 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/397d3473 Branch: refs/heads/master Commit: 397d34736e63d7661a2f01524f8b302e1309d40f Parents: b0e998f Author: Ashish Singhi Authored: Sun Feb 4 17:52:38 2018 +0530 Committer: Ashish Singhi Committed: Sun Feb 4 17:52:38 2018 +0530 -- .../replication/regionserver/ReplicationSourceManager.java | 8 1 file changed, 8 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/397d3473/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index 2147214..6e87563 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -55,6 +55,7 @@ import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.hbase.replication.ReplicationException; import org.apache.hadoop.hbase.replication.ReplicationListener; import org.apache.hadoop.hbase.replication.ReplicationPeer; +import org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState; import org.apache.hadoop.hbase.replication.ReplicationPeers; import org.apache.hadoop.hbase.replication.ReplicationQueueInfo; import org.apache.hadoop.hbase.replication.ReplicationQueueStorage; @@ -747,6 +748,13 @@ public class ReplicationSourceManager implements ReplicationListener { abortWhenFail(() -> queueStorage.removeQueue(server.getServerName(), queueId)); continue; } + if (server instanceof ReplicationSyncUp.DummyServer + && peer.getPeerState().equals(PeerState.DISABLED)) { +LOG.warn("Peer {} is disbaled. ReplicationSyncUp tool will skip " ++ "replicating data to this peer.", + actualPeerId); +continue; + } // track sources in walsByIdRecoveredQueues Map walsByGroup = new HashMap<>(); walsByIdRecoveredQueues.put(queueId, walsByGroup);