Repository navigation
Conversation
Track skip-WAL writes across mutable and immutable memtables and flush them on graceful region close. Distinguish incoming requests from WAL replay, and preserve WAL-only recovery tests by bypassing Close. Adapt bulk tracking to the release branch's existing region-level WAL policy without adding request-level bulk skip-WAL support. Keep release-only tests and omit changes to the absent SST primary-key module. Signed-off-by: WenyXu <wenymedia@gmail.com> (cherry picked from commit a026b3b) Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
5 of 6 tasks
Contributor
Author
WenyXu
approved these changes
Oct 16, 2026
Merge release/5e02efa9 after GreptimeTeam#9627 and GreptimeTeam#9624. Resolve the worker test conflict using the shared memtable installation path, honor request-level bulk skip-WAL flags, and restore bulk close/reopen and WAL-only recovery coverage while preserving release-specific partition-column tests. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
Contributor
Author
|
Resolved against the latest release base (including #9627 and #9624) in 467d27a, without force-pushing. Restored request-level bulk skip-WAL tracking and bulk close/WAL-only recovery coverage. Validation: 1481 tests, 3 SQLness cases, and targeted all-target Clippy passed. The prerequisite ordering note above is now satisfied. |
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.
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
Backport of #9440 to
release/5e02efa9.What's changed and what's your intention?
Preserve request-level skip-WAL rows during graceful region close by flushing memtables that may contain them. Logged-only writes do not cause an extra close-time flush.
Backport adaptations
Updated after #9627 (skip-WAL prerequisites) and #9624 merged into
release/5e02efa9. The latest base was merged without rewriting existing commits.skip_walin memtable tracking, matching the original fix(mito): flush memtables containing skip-WAL writes on region close #9440 behavior; remove the earlier region-only adaptation.sst/primary_key.rsmodule just to port its test-constructor change. Keep the release's test imports and existing write-retry behavior.Crashes and forced termination still provide no durability guarantee for skip-WAL writes. Follower flush restrictions and shutdown error handling are unchanged. No public API, wire-format, WAL-format, or persisted-metadata changes.
Validation
Validated after merging the prerequisite base and restoring bulk close coverage:
cargo nextest run --locked -p mito2 -p metric-engine -p tests-integration --no-fail-fast -E 'not package(tests-integration) | test(skip_wal)': 1481 passed (1338 Mito, 108 metric-engine, 35 skip-WAL integration), 818 excluded.cargo clippy --locked -p mito2 -p metric-engine -p tests-integration --all-targets --no-deps -- -D warnings: passed.cargo sqlness bare -t '(session_skip_wal|copy_skip_wal)': 3 cases passed (session in standalone/distributed and COPY in standalone); result files unchanged.cargo fmt -p mito2 -p metric-engine -- --checkand diff checks against the updated release base: passed.Full workspace tests, the full sqlness suite, and service-backed Kafka runs were not executed. Tests that return early without external-service configuration do not establish external-service coverage.
PR Checklist
backport-<target>labels (e.g.backport-v1.3targetsrelease/v1.3).