Class FSReplicationPeerStorage

java.lang.Object
org.apache.hadoop.hbase.replication.FSReplicationPeerStorage
All Implemented Interfaces:
ReplicationPeerStorage

@Private public class FSReplicationPeerStorage extends Object implements ReplicationPeerStorage
A filesystem based replication peer storage. The implementation does not require atomic rename so you can use it on cloud OSS.

FileSystem layout:

 hbase
   |
   --peers
       |
       --<peer_id>
           |
           --peer_config
           |
           --disabled
           |
           --sync-rep-state
 
Notice that, if the peer is enabled, we will not have a disabled file.

And for other files, to avoid depending on atomic rename, we will use two files for storing the content. When loading, we will try to read both the files and load the newer one. And when writing, we will write to the older file.