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

fix(seglog): pop_front in memory log when pruning #795

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

gabriele-0201
Copy link
Contributor

when self.shared.max_rollback_log_len is reached and rollback delta
needs to be pruned from the front, prune_to_new_start_live will be the
RecordId just after the oldest delta in memory, thus pop_front is required.

Closes THR-118

when `self.shared.max_rollback_log_len` is reached and rollback delta
needs to be pruned from the front, `prune_to_new_start_live` will be the
`RecordId` just after the oldest delta in memory, thus `pop_front` is required.
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@pepyakin pepyakin left a comment

Choose a reason for hiding this comment

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

Nice, thanks.

This suggests that we might need to consider to change the reminology from front/back to something like push_recent and pop_oldest. It's vecdeque who cannot afford this, and we, working in the specific domain, can.

Would you be open to file a test for this case, while your wet caches are warm?

@gabriele-0201
Copy link
Contributor Author

Yes, I will address renaming and tests in a follow up!

@gabriele-0201 gabriele-0201 merged commit 0ef7ce4 into master Feb 10, 2025
8 checks passed
@gabriele-0201 gabriele-0201 deleted the gm_seglog_bug branch February 10, 2025 12:08
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