We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.2
MetadataImage leak
no leak
have no idea
log missing.
only heapdump 24G if needed
The text was updated successfully, but these errors were encountered:
I wonder if StreamMetadataManager.fetch0 may hold one ref of Image at epoch of 29 for very long time.
Sorry, something went wrong.
possible causes:
metadata images are cached without an appropriate eviction policy.
old references are not cleaned up during metadata updates or epoch changes.
some long-lived objects hold strong references to these images.
metadata image objects are no longer in use but are still held by a chain of references.
solution
`public void onEpochChange(int newEpoch) {
for (Iterator<Map.Entry<String, MetadataImage>> it = imageCache.entrySet().iterator(); it.hasNext();) { Map.Entry<String, MetadataImage> entry = it.next(); if (entry.getValue().getEpoch() < newEpoch) { it.remove(); } }
}`
lifepuzzlefun
No branches or pull requests
Version & Environment
1.2
What went wrong?
MetadataImage leak
What should have happened instead?
no leak
How to reproduce the issue?
have no idea
Additional information
log missing.
only heapdump 24G if needed
The text was updated successfully, but these errors were encountered: