-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-24648 Remove the legacy 'forceSplit' related code at region ser… #1990
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. |
💔 -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.
Left few comments.
...erver/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
Show resolved
Hide resolved
...erver/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
Outdated
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Outdated
Show resolved
Hide resolved
region.startRegionOperation(Operation.SPLIT_REGION); | ||
r.forceSplit(null); | ||
// Even after setting force split if split policy says no to split then we should not split. | ||
shouldSplit = region.getSplitPolicy().shouldSplit() && !info.isMetaRegion(); |
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.
After this change, region.getSplitPolicy()
is no longer read by source code, only test code. If test code can get splitPolicy using reflection, maybe we can remove getSplitPolicy()
from HRegion. Anyways, not a strong preference w.r.t this PR, we are good.
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.
Changed getSplitPolicy to package private and added a VisibleForTesting annotation.
The failed UT is TestHeapSize, seems we lost track for the heap size of HRegion for a long time... Need to dig more to see how to fix it... |
🎊 +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. |
🎊 +1 overall
This message was automatically generated. |
💔 -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.
+1
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
…ver side (#1990) Signed-off-by: Viraj Jasani <vjasani@apache.org>
…ver side (#1990) Addendum to fix TestHeapSize
…ver side (#1990) Addendum to fix TestHeapSize
Revert "HBASE-24648 Remove the legacy 'forceSplit' related code at region server side (#1990)" This reverts commit bfec964.
…ver side (apache#1990) Signed-off-by: Viraj Jasani <vjasani@apache.org>
…ver side (apache#1990) Addendum to fix TestHeapSize
…ver side