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 culling of waiters in instance state #93

Merged
merged 3 commits into from
Dec 22, 2021
Merged

Conversation

sebastianburckhardt
Copy link
Member

@sebastianburckhardt sebastianburckhardt commented Dec 20, 2021

Previously, the removal of timed-out waiters was subject to unintended nondeterminism from DateTime.UtcNow, which breaks the event sourcing replay guarantees.

Fixed this by using a deterministic timestamp to figure out which waiters to remove.
Also, timed-out waiters are now removed on any instance state update.

@sebastianburckhardt sebastianburckhardt added this to the 0.7.0-beta milestone Dec 21, 2021
# Conflicts:
#	src/DurableTask.Netherite/Events/PartitionEvents/External/FromClients/WaitRequestReceived.cs
# Conflicts:
#	src/DurableTask.Netherite/Events/PartitionEvents/External/FromClients/WaitRequestReceived.cs
#	src/DurableTask.Netherite/PartitionState/InstanceState.cs
@sebastianburckhardt sebastianburckhardt merged commit 266c31d into dev Dec 22, 2021
@sebastianburckhardt sebastianburckhardt deleted the pr/fix-waiters branch December 22, 2021 23:41
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