-
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-22871 Move the DirScanPool out and do not use static field #504
Conversation
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/DirScanPool.java
Outdated
Show resolved
Hide resolved
LGTM, just one nit. |
💔 -1 overall
This message was automatically generated. |
Any other concerns? @Reidddddd Thanks. |
// Create cleaner thread pool | ||
cleanerPool = new DirScanPool(conf); | ||
// Start log cleaner thread | ||
int cleanerInterval = conf.getInt("hbase.master.cleaner.interval", 600 * 1000); |
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.
Make it a static config key & default value ?
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 this is just a format change? Can do it in another issue if need as it is not introduced by the patch here.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/DirScanPool.java
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/DirScanPool.java
Show resolved
Hide resolved
private class CleanerTask extends RecursiveTask<Boolean> { | ||
private final class CleanerTask extends RecursiveTask<Boolean> { | ||
|
||
private static final long serialVersionUID = -5444212174088754172L; |
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.
nit: do we really need this serialVersiolUID ? I don't see any serialization...
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 RecursiveTask implements Serializable so we need a serialVersionUID, otherwise there will be a warning.
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.
LGTM overall.
🎊 +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.
QA said ok, and so do i, +1.
Signed-off-by: Zheng Hu <[email protected]> Signed-off-by: Reid Chan <[email protected]>
Signed-off-by: Zheng Hu <[email protected]> Signed-off-by: Reid Chan <[email protected]>
Signed-off-by: Zheng Hu <[email protected]> Signed-off-by: Reid Chan <[email protected]>
💔 -1 overall
This message was automatically generated. |
@@ -53,21 +53,22 @@ | |||
|
|||
@ClassRule | |||
public static final HBaseClassTestRule CLASS_RULE = | |||
HBaseClassTestRule.forClass(TestCleanerChore.class); |
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.
Try avoiding this unnecessary change.
…che#504) Signed-off-by: Zheng Hu <[email protected]> Signed-off-by: Reid Chan <[email protected]>
…che#504) Signed-off-by: Zheng Hu <[email protected]> Signed-off-by: Reid Chan <[email protected]> (cherry picked from commit f7364a6) Change-Id: I2126efcbfd71c6a3a997d84f81469d52a70fa38d
No description provided.