Reduce/downgrade some MPPTask logs (#10821)#10874
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@gengliqi 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 with no reviewable changes (1)
📝 WalkthroughWalkthroughLog levels were reduced in MPPHandler and MPPTask; startup and unregister paths now measure elapsed time and only escalate logs to INFO when durations exceed thresholds; post-execution logging is initialized to DEBUG before conditional escalation. ChangesMPP task logging optimization
🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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: 2
🤖 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/Flash/Mpp/MPPTask.cpp`:
- Around line 586-591: The file contains unresolved Git conflict markers in
MPPTask::~MPPTask() and in runImpl() around the log-level setup — remove the
conflict markers (<<<<<<<, =======, >>>>>>>) and choose the correct code path:
in runImpl() ensure the log_level variable is properly declared/assigned
(restore either "auto log_level = Poco::Message::PRIO_DEBUG;" or the existing
"log_level = Poco::Message::PRIO_DEBUG;" depending on surrounding scope) and in
the destructor MPPTask::~MPPTask() pick and keep the intended implementation
block, deleting the alternate branch and markers so the file compiles cleanly;
search for MPPTask::~MPPTask and MPPTask::runImpl to locate and fix both hunks.
- Around line 155-159: There are unresolved merge conflict markers in MPPTask:
remove the conflict markers from MPPTask::~MPPTask and keep only LOG_DEBUG(log,
"finish MPPTask: {}", id.toString());, and in MPPTask::runImpl remove the
conflict markers so that only the intended single logging/code path remains
(ensure the consolidated use of the chosen log_level/logging statements in
runImpl rather than duplicated/conflicting branches); update both locations by
deleting the <<<<<<< / ======= / >>>>>>> lines and resulting dead code so the
file compiles cleanly.
🪄 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: 61f9b77c-0818-4e3e-80bd-37cb2050ccc5
📒 Files selected for processing (2)
dbms/src/Flash/Mpp/MPPHandler.cppdbms/src/Flash/Mpp/MPPTask.cpp
Signed-off-by: gengliqi <gengliqiii@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gengliqi, windtalker 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 |
[LGTM Timeline notifier]Timeline:
|
This is an automated cherry-pick of #10821
What problem does this PR solve?
Issue Number: close #10820
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Summary by CodeRabbit