Skip to content

cdc(logging): remove some verbose and useless logs#12604

Merged
ti-chi-bot[bot] merged 4 commits intopingcap:masterfrom
3AceShowHand:cdc-remove-verbose-logs
Apr 17, 2026
Merged

cdc(logging): remove some verbose and useless logs#12604
ti-chi-bot[bot] merged 4 commits intopingcap:masterfrom
3AceShowHand:cdc-remove-verbose-logs

Conversation

@3AceShowHand
Copy link
Copy Markdown
Contributor

@3AceShowHand 3AceShowHand commented Apr 14, 2026

What problem does this PR solve?

Issue Number: close #11948

What is changed and how it works?

  • remove the verbose log
  • reduce the log frequency
  • remove some useless debug log

This is a sub PR of the #12591

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`

@ti-chi-bot ti-chi-bot Bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-triage-completed affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 14, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request focuses on reducing log verbosity and overhead by removing several log statements and unused imports across multiple modules, including the shared client, transport, and sink components. Key changes include increasing the slow region check interval from 30 seconds to 5 minutes and removing detailed lock resolution logging. Feedback indicates that the increased check interval may negatively impact observability and create logic inconsistencies. Additionally, the removal of logging in the lock resolver has left the totalLocks variable redundant, which should be cleaned up to avoid unnecessary memory and CPU overhead.

Comment thread cdc/kv/shared_client.go
Comment thread pkg/txnutil/lock_resolver.go Outdated
@ti-chi-bot ti-chi-bot Bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Apr 14, 2026
@ti-chi-bot ti-chi-bot Bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Apr 14, 2026
@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented Apr 14, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-04-14 09:11:16.500147895 +0000 UTC m=+1465881.705507952: ☑️ agreed by wk989898.
  • 2026-04-14 09:23:37.946849325 +0000 UTC m=+1466623.152209381: ☑️ agreed by asddongmen.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.4236%. Comparing base (7e0d4db) to head (7176862).
✅ All tests successful. No failed tests found.

❌ Your project check has failed because the head coverage (53.4236%) is below the target coverage (60.0000%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
Components Coverage Δ
cdc 57.3877% <100.0000%> (+0.0077%) ⬆️
dm 49.1749% <ø> (-0.0114%) ⬇️
engine 50.6772% <ø> (-0.0565%) ⬇️
Flag Coverage Δ
cdc 57.3877% <100.0000%> (?)
unit 53.4236% <100.0000%> (-0.0919%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@               Coverage Diff                @@
##             master     #12604        +/-   ##
================================================
- Coverage   53.5155%   53.4236%   -0.0919%     
================================================
  Files          1037       1011        -26     
  Lines        145625     139981      -5644     
================================================
- Hits          77932      74783      -3149     
+ Misses        61845      59575      -2270     
+ Partials       5848       5623       -225     
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

9 similar comments
@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/test pull-dm-integration-test

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/retest

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented Apr 16, 2026

@3AceShowHand: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-dm-integration-test-next-gen 8c02fc9 link false /test pull-dm-integration-test-next-gen

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@3AceShowHand
Copy link
Copy Markdown
Contributor Author

/test pull-dm-integration-test

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented Apr 17, 2026

@flowbehappy: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In 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.

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented Apr 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, flowbehappy, wk989898

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [asddongmen,wk989898]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wuhuizuo
Copy link
Copy Markdown
Contributor

/test pull-error-log-review

@ti-chi-bot ti-chi-bot Bot merged commit e33ff6c into pingcap:master Apr 17, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the "event feed starts to check locked regions" log 🔥🔥🔥

5 participants