KVStore: reduce log (#10813)#10877
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@JaySon-Huang This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughMethod signatures for KVStore persistence were changed to use std::string_view; flush decision points now build structured diagnostic messages and pass them through forceFlushRegionDataImpl into persistRegion only when non-empty. ChangesPersistence Messaging Modernization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@dbms/src/Storages/KVStore/MultiRaft/Persistence.cpp`:
- Around line 222-249: Resolve the leftover merge markers by keeping the
incoming flush_msg construction and the LOG_DEBUG that uses it, remove the
conflict markers and the old LOG_INFO block, and ensure flush_msg is declared
before the call to forceFlushRegionDataImpl so
forceFlushRegionDataImpl(curr_region, ..., flush_msg) compiles; also fix the
unknown accessor curr_region_ptr->getRegionTableSize() either by replacing it
with the correct existing accessor on the region object (e.g., the actual method
that returns the in-memory table size) or by adding/declaring
getRegionTableSize() in the region class, and keep usage of curr_region and
curr_region_ptr consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 0246688f-e497-46db-8de6-7a4d16c7d8ad
📒 Files selected for processing (2)
dbms/src/Storages/KVStore/KVStore.hdbms/src/Storages/KVStore/MultiRaft/Persistence.cpp
|
/hold |
Signed-off-by: JaySon-Huang <tshent@qq.com>
[LGTM Timeline notifier]Timeline:
|
|
@kolafish: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JinheLin, kolafish The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #10813
What problem does this PR solve?
Issue Number: ref #10814
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Summary by CodeRabbit