-
Notifications
You must be signed in to change notification settings - Fork 273
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
use separate batch for snapshot orphans #268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, excited for the randomized tests.
I realized this has at least two bugs:
I'll come up with a fix for the former, but I don't believe the latter can be easily fixed without a pruning redesign. |
Allright, I think this should be good to review again - it's not pretty, but it works. I haven't fixed the second bug above, which requires a pruning redesign, but it's not likely to trigger for most use-cases (e.g. the SDK's usage pattern) - the consequence should only be stale orphans being left behind, I think. The test failure is because of #269. |
The randomized test suite being built on |
No longer relevant, pruning was removed in #274. |
Fixes #261. I tried several approaches, this is the simplest one that passes all current tests.
I found it hard to reason about the interactions between orphaning and pruning, and am concerned that this only adds to the complexity, and thus the potential for harmful interactions. I will write a comprehensive, randomized stress test in a separate PR.