Skip to content

Improve sst_dump raw mode dump result#14166

Closed
xingbowang wants to merge 1 commit intofacebook:mainfrom
xingbowang:2025_12_03_ldb_improve
Closed

Improve sst_dump raw mode dump result#14166
xingbowang wants to merge 1 commit intofacebook:mainfrom
xingbowang:2025_12_03_ldb_improve

Conversation

@xingbowang
Copy link
Contributor

Summary:

Add a new option in sst_dump command to show seq no and value type in raw mode

Test:

Sample output

sst_dump --file=rocksdb_crashtest_blackbox/000010.sst  --command=raw --show_sequence_number_type

...

Range deletions:
--------------------------------------
  HEX    000000000000038D000000000000012B000000000000029A  seq: 3016892  type: 15 : 000000000000038D000000000000012B000000000000029E
  ASCII  \0 \0 \0 \0 \0 \0   \0 \0 \0 \0 \0 \0  + \0 \0 \0 \0 \0 \0   : \0 \0 \0 \0 \0 \0   \0 \0 \0 \0 \0 \0  + \0 \0 \0 \0 \0 \0
  ------

Data Block # 1 @ 0073
--------------------------------------
  HEX    000000000000038D000000000000012B000000000000029D  seq: 3004554  type: 0 :
  ASCII  \0 \0 \0 \0 \0 \0   \0 \0 \0 \0 \0 \0  + \0 \0 \0 \0 \0 \0   :
  ------
  HEX    000000000000038D000000000000012B000000000000029D  seq: 0  type: 1 : 03000000070605040B0A09080F0E0D0C13121110171615141B1A19181F1E1D1C
  ASCII  \0 \0 \0 \0 \0 \0   \0 \0 \0 \0 \0 \0  + \0 \0 \0 \0 \0 \0   :  \0 \0 \0

@meta-cla meta-cla bot added the CLA Signed label Dec 3, 2025
@xingbowang xingbowang force-pushed the 2025_12_03_ldb_improve branch from efc6bbe to a255e0c Compare December 3, 2025 19:19
@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D88396223.

@hx235 hx235 self-requested a review December 4, 2025 18:54
Copy link
Contributor

@hx235 hx235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D88396223.

@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@xingbowang merged this pull request in 340ac7e.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants