-
Notifications
You must be signed in to change notification settings - Fork 455
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
Modified BlockCacheManager to not create caches when size is zero. #5369
base: 2.1
Are you sure you want to change the base?
Conversation
I found this while working on #5302. I added a data block cache to the Compactor, but not index and summary caches. I noticed in the log that these caches were still being created. |
core/src/main/java/org/apache/accumulo/core/spi/cache/BlockCacheManager.java
Show resolved
Hide resolved
The RFile client code has this NoopCache w/ a comment about leaking decompressors and it seems to use the NoopCache in lieu of null. I have no idea if this is relevant outside the client code. Depends on how things are closed in the server code overall, maybe the server code always cleans stuff up and closes decompressors and this is not a concern. accumulo/core/src/main/java/org/apache/accumulo/core/client/rfile/RFileScanner.java Lines 102 to 109 in bd9e676
|
I noticed the NoopCache, but didn't think it would apply to the server side code. Your comment above made me look, and I'm not quite sure at this point. The code is pretty convoluted, but I think the comment in NoopCache still be correct on the client side. On the server side? no idea. |
I also don't see where the existing BlockCache's close the Block such that BCFile.Reader.BlockReader.close is called. |
No description provided.