New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mvcc: reduce log. #2550
mvcc: reduce log. #2550
Conversation
src/storage/mvcc/txn.rs
Outdated
"duplicated prewrite with start_ts {}, ignore it.", | ||
self.start_ts | ||
); | ||
MVCC_DUPLICATE_PREWRITE_COUNTER.inc(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to handle other duplicated logs?
Do we need to handle https://github.com/disksing/tikv/blob/07968dd682eccc93e8c26433c02758f397085c72/src/storage/mvcc/txn.rs#L196 and https://github.com/disksing/tikv/blob/07968dd682eccc93e8c26433c02758f397085c72/src/storage/mvcc/txn.rs#L251 too? Maybe we need to record the message once? |
No. They are conflicts and have other metrics cover them. I was not able to find a good way to log only once for each txn, so turn to use metrics instead... |
do we need to use debug level for 196 and 251 too? |
I think INFO is ok. |
LGTM PTAL @AndreMouche |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix #2507.