Conversation
Signed-off-by: Schatten <czhengt@qq.com>
bitborne
requested review from
XucSh,
YiXR,
stmatengss and
ykwd
as code owners
September 17, 2026 16:57
Aionw
reviewed
Sep 18, 2026
|
|
||
| struct NoFDebugConfig { | ||
| bool enabled = false; | ||
| int interval_ms = 1000; |
Aionw
reviewed
Sep 18, 2026
| bool enabled = false; | ||
| int interval_ms = 1000; | ||
|
|
||
| static bool ReadEnabledFromEnvironment(); |
Collaborator
There was a problem hiding this comment.
Visibility issue, only part of those static method need to be public.
Signed-off-by: Schatten <czhengt@qq.com>
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
Part of #3809. Extract
MC_NOF_DEBUGandMC_NOF_DEBUG_INTERVAL_MSfromtransfer_task.cppinto a private, client-ownedNoFDebugConfigand the common environment catalog. The NoF call sites retain their existing behavior: truthy tokens are case-insensitive (1,true,yes,on), invalid/absent intervals use 1000 ms, and each value is cached independently on its first use. The existing NoF QoS and worker settings remain outside this PR.Raw strings intentionally preserve the old
strtolsyntax, including accepted leading whitespace and rejected trailing whitespace, without adding warnings or changing the public API. This follows the single-owner boundaries of merged #4165 and #4166. Open #4171 and #3424 also edit nearby NoF code but do not own these two debug variables; #4179 moves the client source layout. Any integration conflicts can be addressed if those PRs merge first.Module
mooncake-store)mooncake-common)Type of Change
How Has This Been Tested?
Test commands:
cmake --build build/config-check --target nof_debug_config_test --parallel 231 ctest --test-dir build/config-check -R '^nof_debug_config_test$' --output-on-failure ./scripts/code_format.sh --check --staged pre-commit run --files mooncake-common/include/environment_variables.h mooncake-store/src/CMakeLists.txt mooncake-store/src/config/nof_debug_config.cpp mooncake-store/src/config/nof_debug_config.h mooncake-store/src/transfer_task.cpp mooncake-store/tests/CMakeLists.txt mooncake-store/tests/nof_debug_config_test.cppTest results:
The new tests first failed with the default-only implementation, then passed after the configuration extraction. NoF-enabled compilation and integration should be validated in the NoF CI job.
Checklist
./scripts/code_format.shNo documentation change: existing opt-in values and behavior remain unchanged.
AI Assistance Disclosure
Codex assisted with ownership analysis, implementation, focused RED-to-GREEN tests, and review. The human submitter will review every changed line and is responsible for the change end to end.