Uh oh!
There was an error while loading. Please reload this page.
HBASE-22871 Move the DirScanPool out and do not use static field - #504
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Reidddddd
commented
Aug 17, 2019
LGTM, just one nit. |
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
Apache9
commented
Aug 17, 2019
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.
Make it a static config key & default value ?
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
nit: do we really need this serialVersiolUID ? I don't see any serialization...
There was a problem hiding this comment.
The RecursiveTask implements Serializable so we need a serialVersionUID, otherwise there will be a warning.
Apache-HBase
commented
Aug 17, 2019
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Zheng Hu <openinx@gmail.com> Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: Zheng Hu <openinx@gmail.com> Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: Zheng Hu <openinx@gmail.com> Signed-off-by: Reid Chan <reidchan@apache.org>
Apache-HBase
commented
Aug 17, 2019
💔 -1 overall
This message was automatically generated. |
| @ClassRule | ||
| public static final HBaseClassTestRule CLASS_RULE = | ||
| HBaseClassTestRule.forClass(TestCleanerChore.class); |
There was a problem hiding this comment.
Try avoiding this unnecessary change.
…che#504) Signed-off-by: Zheng Hu <openinx@gmail.com> Signed-off-by: Reid Chan <reidchan@apache.org>
No description provided.