Repository navigation
Conversation
Honor redact-info-log for arguments logged by the connection reset retry callback. Keep retry behavior and the existing query field unchanged. Test the callback with redaction enabled and disabled, including retry decisions and emitted log fields. Verified with go test -race -tags=intest ./dm/syncer/dbconn.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @Tema. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Now you can start all CI jobs with |
What problem does this PR solve?
Issue Number: ref #11489
When DM retries a failed connection reset, the
retrying reset connectionlog includes query arguments even whenredact-info-logis enabled.What is changed and how it works?
Use the existing
ZapRedactStringhelper for theargumentsfield. With redaction enabled, the field contains?; with redaction disabled, it keeps its existing output.Add a regression test covering both settings, emitted log fields, and retry decisions.
Check List
Tests
go test -race -tags=intest ./dm/syncer/dbconnmake fmt FILES='dm/syncer/dbconn/db.go dm/syncer/dbconn/db_test.go'Questions
Will it cause performance regression or break compatibility?
No material performance impact or compatibility change. Retry behavior is unchanged, and argument redaction follows the existing configuration option.
Do you need to update user documentation, design documentation or monitoring documentation?
No. This fixes the existing
redact-info-logoption without adding configuration.Release note
Summary by CodeRabbit