Repository navigation
Conversation
bitborne
requested review from
XucSh,
YiXR,
stmatengss and
ykwd
as code owners
August 28, 2026 17:43
Aionw
reviewed
Aug 31, 2026
| @@ -0,0 +1,143 @@ | |||
| #include "storage/distributed/distributed_storage_backend.h" | |||
Collaborator
There was a problem hiding this comment.
Definition for distributed storage backend config should be extracted out of distributed_storage_backend.h and become a seperated file under src/config.
The dependency graph must be storage_backend -> storage_backend_config.
Contributor
Author
There was a problem hiding this comment.
Extracted DistributedStorageConfig into a separate config header, with its implementation under src/config. The dependency is now DistributedStorageBackend -> DistributedStorageConfig, and the config layer no longer depends on the backend header. The declaration is kept under the public include tree because the backend header stores the config by value.
bitborne
force-pushed
the
store/distributed-storage-environ-convergence
branch
from
August 31, 2026 09:48
02c862c to
84f2de6
Compare
ykwd
approved these changes
Sep 1, 2026
1 task done
Signed-off-by: Schatten <czhengt@qq.com>
Signed-off-by: Schatten <czhengt@qq.com>
bitborne
force-pushed
the
store/distributed-storage-environ-convergence
branch
from
September 1, 2026 07:55
84f2de6 to
8a50872
Compare
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.
Description
This continues the environment configuration convergence from #3408 and #3525 for
DistributedStorageConfig. It groups the existing environment-variable definitions inmooncake-common, moves configuration loading, validation, and formatting out of the distributed-storage backend implementation, and adds focused configuration tests.The refactor preserves the existing defaults, preferred and legacy variable precedence, parsing behavior, diagnostics, validation rules, and read timing. It also keeps the existing silent fallback for empty eviction-watermark values.
#3714 also touches
DistributedStorageConfigto add OSS support. This PR does not change adapter behavior; if #3714 lands first, its validation changes will be preserved when this branch is rebased.Module
mooncake-transfer-engine)mooncake-store)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
Test results:
The configuration and DFS POSIX tests passed 2/2, the filtered Master DFS tests passed 2/2, and all touched-file pre-commit hooks passed.
Checklist
./scripts/code_format.shAI Assistance Disclosure
I used Codex to inspect the existing configuration patterns, help implement and review the refactor, and run focused formatting, build, and test checks. I reviewed all changed lines.