Storages: downgrade some logs (#10815)#10839
Storages: downgrade some logs (#10815)#10839ti-chi-bot wants to merge 1 commit intopingcap:release-8.5from
Conversation
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
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 kubernetes-sigs/prow repository. |
📝 WalkthroughWalkthroughThe pull request downgrades a single log statement in the DeltaMerge read task scheduler from ChangesLog Level Downgrade
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (1 warning, 2 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/DeltaMerge/ReadThread/SegmentReadTaskScheduler.cpp`:
- Line 71: The log call in SegmentReadTaskScheduler was downgraded to LOG_DEBUG;
restore it to LOG_INFO per storage-engine logging guidelines. Replace the
LOG_DEBUG(...) invocation in the SegmentReadTaskScheduler submission path with
LOG_INFO(log, ...) (using the existing LoggerPtr named log) so submission events
are logged at INFO level; ensure the surrounding context/message remains
unchanged and uses the same variables passed to the original call.
🪄 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: e37ebdbd-3a48-4842-b3eb-1e7f9750fc32
📒 Files selected for processing (1)
dbms/src/Storages/DeltaMerge/ReadThread/SegmentReadTaskScheduler.cpp
| std::lock_guard lock(pending_mtx); | ||
| pending_pools.push_back(pool); | ||
| LOG_INFO( | ||
| LOG_DEBUG( |
There was a problem hiding this comment.
Restore LOG_INFO for storage scheduler submission logs
Line 71 downgrades a storage-engine scheduler event to LOG_DEBUG, which conflicts with the repository logging rule for this path. Please keep this as LOG_INFO (or document/adjust the guideline if this downgrade is intentional for release branches).
As per coding guidelines: "dbms/src/Storages/**/{DeltaMerge,KVStore,Page,S3}/**/*.{h,hpp,cpp}: Use LoggerPtr and LOG_INFO(log, ...) with relevant context."
🤖 Prompt for 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.
In `@dbms/src/Storages/DeltaMerge/ReadThread/SegmentReadTaskScheduler.cpp` at line
71, The log call in SegmentReadTaskScheduler was downgraded to LOG_DEBUG;
restore it to LOG_INFO per storage-engine logging guidelines. Replace the
LOG_DEBUG(...) invocation in the SegmentReadTaskScheduler submission path with
LOG_INFO(log, ...) (using the existing LoggerPtr named log) so submission events
are logged at INFO level; ensure the surrounding context/message remains
unchanged and uses the same variables passed to the original call.
|
@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: CalvinNeo, JaySon-Huang, 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 #10815
What problem does this PR solve?
Issue Number: close #10816
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Summary by CodeRabbit
Note: This release contains no user-visible changes.