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

pma: fix memory corruption restoration bug #226

Conversation

barter-simsum
Copy link
Contributor

@barter-simsum barter-simsum commented Apr 12, 2024

Previously, we failed to record node partitions in the flist on restore - leading to memory corruption. Now we do so.

btest.c for some reason ran without fault despite this bug. But when running ares as a serf of vere, this would routinely cause crashes in restoration. I've confirmed this PR fixes that and restoration seems to be behaving normally.

Previously, we failed to record node partitions in the flist on restore. No we
do so
@barter-simsum barter-simsum self-assigned this Apr 12, 2024
@barter-simsum
Copy link
Contributor Author

  • I may refactor this a bit as the dependency graph on restore is pretty complicated and could probably be simplified. Perhaps in a different PR

@barter-simsum
Copy link
Contributor Author

PS. Please don't merge yet. Confirming this fix doesn't introduce any memory leaks in the backing file.

Copy link
Contributor

@ashelkovnykov ashelkovnykov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - reviewed with @barter-simsum in pair session

@barter-simsum barter-simsum merged commit 34c4d03 into status Apr 19, 2024
1 check passed
@barter-simsum barter-simsum deleted the barter-simsum/pma-record-node-partitions-in-flist-on-restore branch April 19, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants