Repository navigation
Enhancement: Support Midge writer handoff in Fitz - #552
Merged
Merged
Conversation
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.
Type
Enhancement: runtime storage startup, readiness, and shutdown behavior, with operator documentation.
Linked issue
Related cross-repository work: cntryl/cassie#1595. No Fitz-specific issue exists; this Fitz change was requested directly.
Summary
cntryl-midge0.7.0.FITZ_STORAGE_WRITER_GENERATIONand optionalFITZ_STORAGE_WRITER_DRAIN_GRACE_MSfor shared local/cloud storage.User/operator impact
Operators can replace Fitz writers without inventing a process-local generation. Memory mode rejects handoff configuration. Midge owns the transaction drain grace; Fitz withdraws readiness during that phase and stops after promotion.
Current and expected behavior
Fitz previously opened Midge without a writer-handoff configuration. It now cold-opens normally, and when Midge reports an active writer it prepares and promotes a replacement with the explicit higher generation. Fitz observes the Midge writer state and updates readiness and shutdown behavior accordingly.
Scope
Changes are limited to Fitz dependency/configuration, storage startup, broker readiness/shutdown integration, tests, and operator/developer docs. No Midge source or workflow changes are included.
Evidence and support status
Retiredand the replacement serves.Validation
cargo fmt --all -- --checkcargo clippy --locked --workspace --all-targets --all-features -- -D warnings -D clippy::pedanticcntryl-tools validate-tests(2806/2806) andcntryl-tools check-module-sizes --root crates/fitz-server --config .cntryl/repository.tomlcargo test --locked -p fitz --lib writer(17 passed)cargo test --locked --workspace(3442 passed, 8 ignored)git diff --check3b53423538c8d630bedd32ddc9f7a516c9ea57a2(backend-checks/crates/e2e, frontend, three integrations, Analyze, and CodeQL).Acceptance criteria
Status
Squash merged as
03db3133dab1287a0d2c51aa1eb2c676849db3d4after full local validation and green exact-head hosted checks.