Skip to content

Commit 51893b9

Browse files
authored
HBASE-26029 It is not reliable to use nodeDeleted event to track region server's death (#3430)
Signed-off-by: Xin Sun <ddupgs@gmail.com>
1 parent 64d4915 commit 51893b9

33 files changed

+854
-1203
lines changed

hbase-protocol-shaded/src/main/protobuf/server/master/MasterProcedure.proto

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,9 @@ enum ServerCrashState {
312312
SERVER_CRASH_WAIT_ON_ASSIGN = 9;
313313
SERVER_CRASH_SPLIT_META_LOGS = 10;
314314
SERVER_CRASH_ASSIGN_META = 11;
315-
SERVER_CRASH_DELETE_SPLIT_META_WALS_DIR=12;
316-
SERVER_CRASH_DELETE_SPLIT_WALS_DIR=13;
315+
SERVER_CRASH_DELETE_SPLIT_META_WALS_DIR = 12;
316+
SERVER_CRASH_DELETE_SPLIT_WALS_DIR = 13;
317+
SERVER_CRASH_CLAIM_REPLICATION_QUEUES = 14;
317318
SERVER_CRASH_HANDLE_RIT2 = 20[deprecated=true];
318319
SERVER_CRASH_FINISH = 100;
319320
}
@@ -624,3 +625,23 @@ enum SplitWALState{
624625
DISPATCH_WAL_TO_WORKER = 2;
625626
RELEASE_SPLIT_WORKER = 3;
626627
}
628+
629+
message ClaimReplicationQueuesStateData {
630+
required ServerName crashed_server = 1;
631+
}
632+
633+
message ClaimReplicationQueueRemoteStateData {
634+
required ServerName crashed_server = 1;
635+
required string queue = 2;
636+
required ServerName target_server = 3;
637+
}
638+
639+
message ClaimReplicationQueueRemoteParameter {
640+
required ServerName crashed_server = 1;
641+
required string queue = 2;
642+
}
643+
644+
enum ClaimReplicationQueuesState {
645+
CLAIM_REPLICATION_QUEUES_DISPATCH = 1;
646+
CLAIM_REPLICATION_QUEUES_FINISH = 2;
647+
}

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/MasterReplicationTracker.java

Lines changed: 0 additions & 103 deletions
This file was deleted.

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationFactory.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package org.apache.hadoop.hbase.replication;
1919

2020
import org.apache.hadoop.conf.Configuration;
21-
import org.apache.hadoop.hbase.util.ReflectionUtils;
2221
import org.apache.hadoop.hbase.zookeeper.ZKWatcher;
2322
import org.apache.yetus.audience.InterfaceAudience;
2423

@@ -36,10 +35,4 @@ private ReplicationFactory() {
3635
public static ReplicationPeers getReplicationPeers(ZKWatcher zk, Configuration conf) {
3736
return new ReplicationPeers(zk, conf);
3837
}
39-
40-
public static ReplicationTracker getReplicationTracker(ReplicationTrackerParams params) {
41-
Class<? extends ReplicationTracker> clazz = params.conf().getClass(REPLICATION_TRACKER_IMPL,
42-
ZKReplicationTracker.class, ReplicationTracker.class);
43-
return ReflectionUtils.newInstance(clazz, params);
44-
}
4538
}

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationTracker.java

Lines changed: 0 additions & 61 deletions
This file was deleted.

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationTrackerBase.java

Lines changed: 0 additions & 72 deletions
This file was deleted.

hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationTrackerParams.java

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)