Class ReplicationQueueInfo
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationQueueInfo
This class is responsible for the parsing logic for a queue id representing a queue. It will
extract the peerId if it's recovered as well as the dead region servers that were part of the
queue's history.
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<ServerName>
private static final org.slf4j.Logger
private final String
private final String
private boolean
-
Constructor Summary
ConstructorDescriptionReplicationQueueInfo
(String queueId) The passed queueId will be either the id of the peer or the handling story of that queue in the form of id-servername-* -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
extractDeadServersFromZNodeString
(String deadServerListStr, List<ServerName> result) Parse dead server names from queue id.boolean
-
Field Details
-
LOG
-
peerId
-
queueId
-
queueRecovered
-
deadRegionServers
-
-
Constructor Details
-
ReplicationQueueInfo
The passed queueId will be either the id of the peer or the handling story of that queue in the form of id-servername-*
-
-
Method Details
-
extractDeadServersFromZNodeString
private static void extractDeadServersFromZNodeString(String deadServerListStr, List<ServerName> result) Parse dead server names from queue id. servername can contain "-" such as "ip-10-46-221-101.ec2.internal", so we need skip some "-" during parsing for the following cases: 2-ip-10-46-221-101.ec2.internal,52170,1364333181125-<server name>-... -
getDeadRegionServers
-
getPeerId
-
getQueueId
-
isQueueRecovered
-