-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
producer_state: add request::set_error and make it idempotent
A request can be marked as errored multiple times, consider the example below. replicate_f : waiting for replication term change requests from old terms gc-ed: set_err(ec) replicate_f: set_err(ec) Current assert assumes that a request can be set only once, which is true for setting a successful result but not for errors. This commit splits set_value() into set_value() and set_error() and adjusts assert conditions accordingly. (cherry picked from commit 7719140)
- Loading branch information
Showing
3 changed files
with
36 additions
and
20 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
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