Skip to content
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

Improve mvcc log warnings #2649

Merged
merged 1 commit into from
Jun 8, 2021
Merged

Conversation

denyeart
Copy link
Contributor

@denyeart denyeart commented Jun 7, 2021

MVCC invalidations generated a log warning but did not
indicate which versions are mismatched.
This change adds a log warning indicating the specific
version mismatch to help users troubleshoot MVCC invalidations.

Also the version formatting in the log was updated from format:

&version.Height{BlockNum:0x6, TxNum:0x0}

to user friendly format:

{BlockNum: 6, TxNum: 0}

Signed-off-by: David Enyeart enyeart@us.ibm.com

@denyeart denyeart requested a review from a team as a code owner June 7, 2021 18:58
MVCC invalidations generated a log warning but did not
indicate which key and versions are mismatched.
This change adds a log warning indicating the specific
version mismatch to help users troubleshoot MVCC invalidations.

Also the version formatting in the log was updated from format:

   &version.Height{BlockNum:0x6, TxNum:0x0}

to user friendly format:

   {BlockNum: 6, TxNum: 0}

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
@manish-sethi manish-sethi merged commit b2f7292 into hyperledger:main Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants