-
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-27852: Interrupt BucketCachePersister thread when BucketCache i… #5230
Conversation
💔 -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. |
} catch (IOException e) { | ||
LOG.warn("IOException in BucketCachePersister" + e.getMessage()); | ||
} catch (InterruptedException iex) { | ||
LOG.warn("InterruptedException in BucketCachePersister" + iex.getMessage()); | ||
break; |
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: parameterised logging.
@@ -178,6 +178,8 @@ public class BucketCache implements BlockCache, HeapSize { | |||
|
|||
private final BucketCacheStats cacheStats = new BucketCacheStats(); | |||
|
|||
/** BucketCache persister thread */ | |||
BucketCachePersister cachePersister; |
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: should be private?
final java.nio.file.Path mapFile = | ||
FileSystems.getDefault().getPath(testDir.toString(), "bucket.persistence"); | ||
assertTrue(Files.deleteIfExists(mapFile)); | ||
Thread.sleep(1500); |
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.
Could we expedite this test by reducing the configured bucketcachePersistInterval
to 100ms only? Then we could reduce this sleep to a lower value too, say 150ms.
🎊 +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. |
…ucketCache is shutdown (apache#5230) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> (cherry picked from commit e343584) Change-Id: I732be093d06cedecd607b83fea00d5306cabeee8
…s shutdown
Jira: https://issues.apache.org/jira/browse/HBASE-27852