-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logstream): introduce commit wait task for append batch
This commit introduces a commit wait task that represents an entire append batch, rather than individual log entries. This is a crucial step towards implementing atomic append operations. Previously, a separate commit wait task was created for each log entry in an append batch. This approach made it difficult to handle the batch atomically, as commit wait tasks were processed individually. With this change, a single commit wait task is created for the entire batch. This allows the committer to process the batch atomically, ensuring that either all log entries in the batch are committed or none are. This change also brings a slight performance improvement, as the committer now needs to process fewer tasks. However, no specific benchmarks have been performed to measure the exact gain. The client API does not yet support atomic append operations, and partial success/failure is still allowed. This will be addressed in a future update. This change is a major step towards resolving #843, which aims to implement atomic append operations.
- Loading branch information
Showing
10 changed files
with
143 additions
and
144 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
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
Oops, something went wrong.