Skip to content

cli: support lock table keys in debug decode-key#166366

Open
ameyapatil1986 wants to merge 1 commit intocockroachdb:masterfrom
ameyapatil1986:cli/debug-decode-key-lock-table
Open

cli: support lock table keys in debug decode-key#166366
ameyapatil1986 wants to merge 1 commit intocockroachdb:masterfrom
ameyapatil1986:cli/debug-decode-key-lock-table

Conversation

@ameyapatil1986
Copy link

decode-key previously only accepted MVCC keys or raw user keys. Lock table keys are stored as engine keys with a lock version suffix; try DecodeEngineKey after DecodeMVCCKey and print lock table keys consistently with other debug tooling.

Fixes #114425

Release note (cli change): The debug decode-key command can now decode lock table engine keys, not only MVCC keys and unversioned user keys.

Testing: ./dev test pkg/cli -f=TestDebugDecodeKeys -v

decode-key previously only accepted MVCC keys or raw user keys. Lock table
keys are stored as engine keys with a lock version suffix; try
DecodeEngineKey after DecodeMVCCKey and print lock table keys consistently
with other debug tooling.

Fixes cockroachdb#114425

Release note (cli change): The debug decode-key command can now decode
lock table engine keys, not only MVCC keys and unversioned user keys.

Made-with: Cursor
@ameyapatil1986 ameyapatil1986 requested review from a team as code owners March 22, 2026 03:17
@trunk-io
Copy link
Contributor

trunk-io bot commented Mar 22, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@blathers-crl
Copy link

blathers-crl bot commented Mar 22, 2026

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl bot added the O-community Originated from the community label Mar 22, 2026
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-community Originated from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: debug decode-key does not support lock table keys

2 participants