Feature/control improvements#84
Merged
Merged
Conversation
…and implementations.
- Update replication flow to handle tailer resets on timeout and improve logging for tail and append-entry flows. - Adjust `poll_ledger_watermark` and `advance_commit_index` for monotonic commit ordering and invariants preservation. - Modify test `advance_write_below_commit_is_noop` to reflect updated replication behavior. - Add new cluster test `cluster_commit_advances_under_burst` to validate commit progression under high transaction load. - Refactor WAL tailing logic and add tests for segment-to-active tail behavior, ensuring correctness in cross-segment reads.
- Update enums and types for consistent state representation. - Simplify `txStatusFromPb` to only consume `fail_reason` from per-tx polling. - Add `waitStatusFromPb` for processing wait state in blocking-poll loops.
- Refactor `TransactionStatus` to separate pipeline stage and fail reason. - Introduce `WaitStatus` and `isWaitTerminal` for consistent wait state handling. - Update `waitForTransaction` and `getTransactionStatus` to use revised types.
…nd `parseTxId` helper function.
- Introduce `usePipelineIndices` for leader index retrieval with sticky mid-election state. - Update transaction and wait models: - Decouple pipeline stage and failure reason. - Add `WaitStatus` and terminal state utility. - Update mocks, simulators, and tests for new state handling and error propagation. - Refactor replication logic to address tail reset issues and improve append-entry flow.
…ion and election recovery.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.