Skip to content

Relax set_*_compaction methods #340

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

Merged

Conversation

frankmcsherry
Copy link
Member

The various TraceAgent::set_*_compaction methods would assert if certain invariants were not satisfied. This clashed a bit with their existing uses which didn't incorporate the initial state of the TraceAgent into their reasoning, resulting in panics. Uses of these methods with frontiers that are not greater-equal the current compaction frontier are "in error", but this behavior may be more generous and less crashy. Any user can assert that their argument to this call equals the result of TraceAgent::get_*_compaction and crash on their own if they prefer, but DD doesn't need to force them to crash.

@frankmcsherry
Copy link
Member Author

@frankmcsherry frankmcsherry merged commit 8cdc534 into TimelyDataflow:master Aug 31, 2021
This was referenced Oct 29, 2024
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.

1 participant