-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute: fix advancement of replica-targeted subscribe frontiers
This commit changes how the compute controller handles frontier updates for replica-targeted subscribes. Previously, each replica could advance the global frontier of a subscribe, targeted or not. With this commit, only the targeted replica can cause a global frontier advancement. This fixes the following error scenario: * A non-targeted replica advances to the empty frontier. * The compute controller downgrades the subscribe's global frontier to the empty frontier. * The compute controller sends an `AllowCompaction([])` command to all replicas. * The targeted replica receives the `AllowCompaction([])` and considers the subscribe dropped. * The compute controller never receives a subscribe response from the targeted replica.
- Loading branch information
Showing
2 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters