*: redact arguments for Error#20436
Conversation
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
/run-all-tests parser=pr/1051 |
1 similar comment
|
/run-all-tests parser=pr/1051 |
|
/run-unit-test |
|
/run-all-tests |
|
/run-sqllogic-test-1 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-4.0 in PR #21106 |
What problem does this PR solve?
Issue Number: part of #18566
Problem Summary:
What is changed and how it works?
Proposal: xxx
What's Changed:
Error.GenWithStackByArgs&Error.FastGenByArgsmysql.Messageto bindredactArgswhich means which arguments of the error need to be redacted with each error messageMySQLErrNameshould be defined withmysql.Message.ErrClass.NewStdconsidersredactArgsErrClass.NewStdormysql.Messageto consider error redactionErrClass.NewStdErrClass.NewStdormysql.Messageto consider error redactionHow it Works:
Related changes
pingcap/docs/pingcap/docs-cn: To be addedCheck List
Tests
Case 1
log:
Case 2
Client 1:
Then start client 2:
log:
Release note
tidb_redact_logto control showing the sensitive message in the log.