Skip to content

Conversation

vishalv1994
Copy link
Contributor

The debug decode-key command previously only supported MVCC keys and unversioned user keys. This change adds support for decoding lock table keys by using DecodeEngineKey to determine key type and handling lock table keys with ToLockTableKey().

Test cases added for both Intent and Shared lock strengths.

Fixes: #114425

Release Notes: None

@vishalv1994 vishalv1994 self-assigned this Aug 16, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@vishalv1994 vishalv1994 added the E-easy Easy issue to tackle, requires little or no CockroachDB experience label Aug 16, 2025
@vishalv1994 vishalv1994 force-pushed the cli-debug-decode-lock-table-keys branch from 5db84c8 to 018544f Compare August 16, 2025 04:35
Copy link

blathers-crl bot commented Aug 16, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

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

@vishalv1994 vishalv1994 force-pushed the cli-debug-decode-lock-table-keys branch from 018544f to 9f20d1c Compare August 16, 2025 05:12
The debug decode-key command previously only supported MVCC keys
and unversioned user keys. This change adds support for decoding
lock table keys by using DecodeEngineKey to determine key type
and handling lock table keys with ToLockTableKey().

Test cases added for both Intent and Shared lock strengths.

Fixes: cockroachdb#114425

Release Notes: None
@vishalv1994 vishalv1994 force-pushed the cli-debug-decode-lock-table-keys branch from 9f20d1c to 3759e2f Compare August 16, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Easy issue to tackle, requires little or no CockroachDB experience
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