txn: add more debug information for the txn commands#12779
txn: add more debug information for the txn commands#12779ti-chi-bot merged 4 commits intotikv:masterfrom
Conversation
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
Seems some fields are not redacted when setting |
It's needed, seems the |
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
|
@ekexium |
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
| Mutation::Put((key, value), assertion) => write!( | ||
| f, | ||
| "Put key:{:?} value:{:?} assertion:{:?}", | ||
| key, |
There was a problem hiding this comment.
Do the keys need to be redacted?
There was a problem hiding this comment.
Key has implemented Debug and Display using log_wrappers
| AcquirePessimisticLock: | ||
| cmd_ty => StorageResult<PessimisticLockRes>, | ||
| display => "kv::command::acquirepessimisticlock keys({}) @ {} {} | {:?}", (keys.len, start_ts, for_update_ts, ctx), | ||
| display => "kv::command::acquirepessimisticlock keys({:?}) @ {} {} {} {:?} {} {} | {:?}", |
There was a problem hiding this comment.
I'm afraid it looks a little hard to recognize which field is each value in the logs.
MyonKeminta
left a comment
There was a problem hiding this comment.
Ah, I'm sorry. Just noticed that the Key type already has built-in redaction.
|
/merge |
|
@MyonKeminta: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 379e69a |
|
/test |
Signed-off-by: cfzjywxk lsswxrxr@163.com
What is changed and how it works?
Issue Number: close #12803
What's Changed:
Related changes
Check List
Tests
Side effects
Release note