Skip to content
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

Memory leak during transaction handling #557

Closed
novoj opened this issue May 10, 2024 · 0 comments · Fixed by #558
Closed

Memory leak during transaction handling #557

novoj opened this issue May 10, 2024 · 0 comments · Fixed by #558
Assignees
Labels
bug Something isn't working
Milestone

Comments

@novoj
Copy link
Collaborator

novoj commented May 10, 2024

evitaDB leaks memory when there are regular catalog updates in transactional mode. By studying heap dump we found that problem is inside catalogAccessor lambda in EntityCollection. It seems there are situations where collections refer to the old catalog which in turn refers to old entity collections which in turn refer to yet older catalog instance and vice versa.

Current way of reataching entity collections to new instances of the catalogs seems unreliable and we have to change it.

@novoj novoj added the bug Something isn't working label May 10, 2024
@novoj novoj added this to the Beta milestone May 10, 2024
@novoj novoj self-assigned this May 10, 2024
novoj added a commit that referenced this issue May 10, 2024
According to heapdump - current way of switching catalog reference is not safe and there are references to old catalogs trapped in "catalogAccessor" lambda in entity collection. These changes aim to clarify the process of transitioning from one catalog version to another and avoiding the reference leak.
According to heapdump - current way of switching catalog reference is not safe and there are references to old catalogs trapped in "catalogAccessor" lambda in entity collection. These changes aim to clarify the process of transitioning from one catalog version to another and avoiding the reference leak.
@novoj novoj linked a pull request May 10, 2024 that will close this issue
novoj added a commit that referenced this issue May 10, 2024
…tion-handling

fix(#557): memory leak during transaction handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant