saintstack opened a new pull request #2413:
URL: https://github.com/apache/hbase/pull/2413
ReplicationSource filters in hbase:meta WALs and filters out
user-space WALs. Allows all edits from meta WALs through.
Does not persist replication state to backing store; it is
not needed for in-cluster region replicas (but this patch
only adds this improvment on async WAL region replicas
for hbase:metai table).
Made it explicit that a ReplicationSource feeds from a
WALProvider.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Fix logging; don't log we've flushed when we haven't.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Pass WALFactory instead of WALProvider... WALFactory has
user-space and meta WALProviders. Pass so replication can
get access to meta WALs. Add spinning up a thread to run
flush of primary Region if it hbase:meta table.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ReplicationService.java
Take a WALFactory rather than a WALProvider.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/AssignRegionHandler.java
If we are opening hbase:meta Region and hbase:meta region read replicas
are enabled, then add hbase:meta WALs as a repliation source.
Bug fix... We were using a CLOSE executor when opening.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java
If closing hbase:meta, then remove replication source if in place.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HBaseMetaNoQueueStoreReplicationSource.java
Special-case ReplicationSource used by hbase:meta read replicas.
Configured to suit reading hbase:meta WALs.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
Pass walFactory instead of walProvider. Move adding of listener
elsewhere to accomodate lazy instantiation of hbase:meta
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Take walProvider on construction and remove the length function from init.
Clean up some namings; queueId vs peerId vs walGroupId.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceFactory.java
Add being able to create an hbase:meta region read replica
ReplicationSource.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceInterface.java
Adds a getWALProvider.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java
Add key for the hbase:meta region read replica replication source.
Take WALFactory rather than WALProvider. It has pointers to all
hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
Expose useful util.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java
Make it work for the case of lazy onlining of hbase:meta replicas.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]