-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-27474 Evict blocks on split/merge; Avoid caching reference/hlinks if compaction is enabled #4868
Conversation
…ks if compaction is enabled Change-Id: I63296f5f95c9549d75ea7c991d2202c2e550300e
💔 -1 overall
This message was automatically generated. |
Change-Id: I7b43530fe2ba44e6b6eb21f6526f7120a8eb235b
🎊 +1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/CloseRegionProcedure.java
Outdated
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/CloseRegionProcedure.java
Outdated
Show resolved
Hide resolved
...ver/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java
Outdated
Show resolved
Hide resolved
...ver/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java
Outdated
Show resolved
Hide resolved
@@ -277,6 +280,10 @@ Throwable getException() { | |||
/** Returns Instance of HRegion if successful open else null. */ | |||
private HRegion openRegion() { | |||
HRegion region = null; | |||
boolean compactionEnabled = | |||
((HRegionServer) server).getCompactSplitThread().isCompactionsEnabled(); | |||
this.server.getConfiguration().setBoolean(HBASE_REGION_SERVER_ENABLE_COMPACTION, |
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.
Why change the global configuration here?
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.
We want to prefetch blocks for links/refs only if compaction is disabled, but the prefetch happens in the HFileReader, where we don't access to the CompactSplitThread, so saving the state of compaction switch in the config for HFileReader deciding if prefetch should go ahead.
...server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java
Show resolved
Hide resolved
💔 -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. |
Latest test failure shouldn't be related. |
recheck |
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.
The change looks fine. I had some thoughts on compatibility related to upgrade/rollback but I don't think those could be affected.
…ks if compaction is enabled (apache#4868) Signed-off-by: Peter Somogyi <psomogyi@apache.org>
…aching reference/hlinks if compaction is enabled (apache#4868) Signed-off-by: Peter Somogyi <psomogyi@apache.org> (cherry picked from commit 222ec68) Change-Id: I0d864cbd2a423e8df27e964834c2bcee21a532f9
No description provided.