2005hithlj commented on code in PR #5203:
URL: https://github.com/apache/hbase/pull/5203#discussion_r1186684616


##########
src/main/asciidoc/_chapters/ops_mgt.adoc:
##########
@@ -2610,6 +2636,32 @@ The new layout will be:
       1.1.1.2,60020.1312  (Contains a position)
 ----
 
+==== The replication queue claiming(based on hbase table)
+
+Given a master cluster with 3 region servers replicating to a single slave 
with id `2`, the following info represents what the storage layout of queue in 
the hbase:replication at some point in time.
+Row key is <PeerId>-<ServerName>[/<SourceServerName>], and value is WAL && 
Offset.
+
+----
+
+  <PeerId>-<ServerName>[/<SourceServerName>]                        WAL && 
Offset
+  2-1.1.1.1,60020,123456780                            1.1.1.1,60020.1234  
(Contains a position)
+  2-1.1.1.2,60020,123456790                            1.1.1.2,60020.1214  
(Contains a position)
+  2-1.1.1.3,60020,123456630                            1.1.1.3,60020.1280  
(Contains a position)
+----
+
+Assume that 1.1.1.2 failed.
+The survivors will claim queue of that, and, arbitrarily, 1.1.1.3 wins.
+It will claim all the queue of 1.1.1.2, including removing the row of a 
replication queue, and inserting a new row(where we change the server name to 
the region server which claims the queue).
+Finally ,the layout will look like the following:

Review Comment:
   > The position of the ',' is incorrect?
   
   OK  sir , I have revised.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to