-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Labels
C-bugCategory BugsCategory Bugs
Description
What type of bug is this?
Other
What subsystems are affected?
Datanode
What happened?
We already implemented an object store cache in #928 , but it has a potential issue.
The LruCachePolicy keeps all active cached items in memory, and if we restart the datanode, those items are lost.We don't recover the cached items from disk when initializing the LRU cache. The cache will be reconstructed by file accessing.
So if a file is not accessed after that at all, the file is leaked on disk forever and may consume too much disk consumption.
What operating system did you use?
All os systems.
Relevant log output and stack trace
No response
How can we reproduce the bug?
- Enable the object store caching by setting
cache_pathin storage config when using s3 or OSS. - Write and read some data.
- Restart the datanode(or standalone node).
- The files in
cache_pathmay leak.
Metadata
Metadata
Assignees
Labels
C-bugCategory BugsCategory Bugs