-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-27250 MasterRpcService#setRegionStateInMeta does not support re… #4664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
f626df5 to
c283ea7
Compare
|
force pushed update to address spotless and spotbugs issues. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
Outdated
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
Outdated
Show resolved
Hide resolved
|
unit | 282m 8s | hbase-server in the patch failed. |
This comment was marked as outdated.
This comment was marked as outdated.
|
Run TestSyncReplicationRemoveRemoteWAL and TestFuzzyRowFilterEndToEnd locally, they passed. |
Apache9
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And checked the code again, when calculating encodedRegionName, we will include replicaId so I think the old implementation can support replica region, as the encodedRegionName for a secondary replica region is different from the primary replica region.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
Outdated
Show resolved
Hide resolved
|
Thanks for comments, checking! |
|
Any updates here? Thanks. |
|
I'm seeing some production issues and I think this feature would be useful. Let me try to pick it up. |
…plica region encodedNames or region names
ab8030a to
a3585b1
Compare
|
Oh hey, it let me push to @huaxiangsun 's branch. I have rebased onto master and picked up the plumbing required through AM to handle read replica regions in more places. As a nice bonus, I think HBCKServerCrashProcedure will now clean up replicas too. devtests are passing locally. I'd like to add an HBCKSCP test that explicitly covers this use-case. LEt's see what builedbot has to say. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
Outdated
Show resolved
Hide resolved
- make several MetaTableAccessor methods more precise in their handling of replica regions - hbck2 setRegionStateInMeta and HBCKServerCrashProcedure handle read replicas - separate AM helper methods -- loading RegionInfo from cache vs. refreshing cache from meta - AM helper method support loading RegionInfo from cache via either region name and encoded region name (both caches are maintained, and under lock)
a3585b1 to
47df4f5
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
petersomogyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good to me. Thanks @ndimiduk for moving this patch forward!
|
Merged to master. Thanks all for the effort! |
…plica region encodedNames or region names