Uh oh!
There was an error while loading. Please reload this page.
HBASE-25899 Improve efficiency of SnapshotHFileCleaner - #3280
Conversation
Apache-HBase
commented
May 19, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 19, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 19, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 20, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 20, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 20, 2021
💔 -1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
May 21, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 21, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
May 21, 2021
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Duo Zhang <zhangduo@apache.org>
| synchronized (this) { | ||
| refreshCache(); | ||
| currentCache = cache; | ||
| refreshed = true; | ||
| } | ||
| } |
There was a problem hiding this comment.
I found this line is still blocking the delete tasks... basically I LOG.info/print the lock information before the line of if (lock == null || lock.tryLock()) { , I found it won't add any unReferencedFiles file because once a synchronized refresh cache in line 207 is being called e.g. java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock@568e37c0[Locked by thread hfile_cleaner-dir-scan-pool-2] , then whatever files passing in will be skipped.
maybe I'm wondered, why do we need a write lock for refreshing snapshot file cache ?
…eaner (apache#3280) Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 76d56bc) Change-Id: I74defca8babde5a941985d8e560aa1c58a5f5bd3
More details in HBASE-25899