HBASE-26583 Make StatisticThread alternative in BucketCache#3956
HBASE-26583 Make StatisticThread alternative in BucketCache#3956YutSean wants to merge 3 commits intoapache:masterfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Have rebased to master. Let's see the UT result this time. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| private transient final ScheduledExecutorService scheduleThreadPool = | ||
| Executors.newScheduledThreadPool(1, | ||
| new ThreadFactoryBuilder().setNameFormat("BucketCacheStatsExecutor").setDaemon(true).build()); | ||
| private transient ScheduledExecutorService scheduleThreadPool; |
There was a problem hiding this comment.
Fixed in the latest commit.
| "hbase.bucketcache.persistent.file.integrity.check.algorithm"; | ||
| private static final String DEFAULT_FILE_VERIFY_ALGORITHM = "MD5"; | ||
| private static final String STAT_THREAD_ENABLE_KEY = "hbase.bucketcache.stat.enable"; | ||
| private static final boolean STAT_THREAD_ENABLE_DEFAULT = false; |
There was a problem hiding this comment.
And better set it to true to keep the old behavior by default?
There was a problem hiding this comment.
The purpose to make the log alternative is that the log is only used when heavy debugging is needed. Turn on is a little bit annoying at other time I think. So that I changed the old behaviour. What do you think?
There was a problem hiding this comment.
I think in this PR we'd better keep the old behavior, i.e, set it true. We can file another issue to change it to true on master branch, and mark it as incompatible change. On branch-2.x we'd better keep the old behavior.
|
🎊 +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. |
|
Please rebase and fix the checkstyle issue? Thanks. |
https://issues.apache.org/jira/browse/HBASE-26583