-
Couldn't load subscription status.
- Fork 3.4k
HBASE-26459 HMaster should move non-meta region only if meta is ONLINE #3875
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
|
💔 -1 overall
This message was automatically generated. |
|
@YutSean Can we add some tests ? |
|
OK, let me try. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
The failed UT passed locally. It is a little bit flaky. |
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.
Left some comments, thanks @YutSean for the improvement
| LOG.info("Moving " + rp + " failed. " + | ||
| "While there is still meta regions in transition after " + | ||
| timeoutWaitMetaRegionAssignment + "ms waiting."); |
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.
I think ERROR log would be better. Also, how about this error message?
LOG.error("This is fail-fast of the region move because hbase:meta region is in transition. Failed region move info: " + rp);
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.
Looks better. Changed in the latest commit.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
Show resolved
Hide resolved
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
Show resolved
Hide resolved
| public static final String HBASE_MASTER_WAITING_META_ASSIGNMENT_TIMEOUT = | ||
| "hbase.master.waiting.meta.assignment.timeout"; | ||
|
|
||
| public static final long HBASE_MASTER_WAITING_META_ASSIGNMENT_TIMEOUT_DEFAULT = 5000; |
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.
Let's keep it 10000 (10 s)?
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.
Not sure if 10s is better. Actually, 5s is my intuition. Have changed in the latest commit. But could you explain the reason to change to 10s a little bit?
|
💔 -1 overall
This message was automatically generated. |
| if (assignmentManager.getRegionStates().isMetaRegionInTransition()) { | ||
| LOG.error("This is fail-fast of the region move because " | ||
| + "hbase:meta region is in transition. Failed region move info: " + rp); | ||
| return; |
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.
I think we can throw HBaseIOException here since this is fail-fast scenario?
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.
Right, exception could be detected by the client. Have changed to throw exception in the latest commit.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
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.
Overall looks good. Thanks @YutSean. Can you please also take care of the recent whitespace warning?
|
Fixed in the latest commit. Let's see if it is ok this time. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
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.
+1
https://issues.apache.org/jira/browse/HBASE-26459