Skip to content

Commit c26a7b2

Browse files
committed
db: add RangeDeletionBytesEstimate blob file test
This test demonstrates #5501.
1 parent 580eb1a commit c26a7b2

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

testdata/compaction/value_separation

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ L6:
893893
Blob files:
894894
B000016 physical:{000016 size:[121 (121B)] vals:[42 (42B)]}
895895

896-
897896
sstable-properties file=000015
898897
----
899898
rocksdb.num.entries: 9
@@ -918,7 +917,6 @@ pebble.value-separation.kind: 2
918917
pebble.value-separation.min-size: 10
919918
obsolete-key: hex:00
920919

921-
922920
sstable-properties file=000017
923921
----
924922
rocksdb.num.entries: 12
@@ -941,3 +939,47 @@ pebble.compression_stats: None:36,Snappy:132/225
941939
pebble.value-separation.kind: 1
942940
pebble.value-separation.min-size: 1024
943941
obsolete-key: hex:00
942+
943+
define value-separation=(enabled, min-size=8, max-ref-depth=10, rw-min-age=0s, garbage-ratios=1.0:1.0)
944+
----
945+
946+
batch
947+
set foo <rand-bytes=4096>
948+
----
949+
950+
flush
951+
----
952+
L0.0:
953+
000005:[foo#10,SET-foo#10,SET] seqnums:[10-10] points:[foo#10,SET-foo#10,SET] size:797 blobrefs:[(B000006: 4096); depth:1]
954+
Blob files:
955+
B000006 physical:{000006 size:[4190 (4.1KB)] vals:[4096 (4.0KB)]}
956+
957+
compact a-z
958+
----
959+
L6:
960+
000005:[foo#10,SET-foo#10,SET] seqnums:[10-10] points:[foo#10,SET-foo#10,SET] size:797 blobrefs:[(B000006: 4096); depth:1]
961+
Blob files:
962+
B000006 physical:{000006 size:[4190 (4.1KB)] vals:[4096 (4.0KB)]}
963+
964+
batch
965+
del-range a z
966+
----
967+
968+
flush
969+
----
970+
L0.0:
971+
000008:[a#11,RANGEDEL-z#inf,RANGEDEL] seqnums:[11-11] points:[a#11,RANGEDEL-z#inf,RANGEDEL] size:685
972+
L6:
973+
000005:[foo#10,SET-foo#10,SET] seqnums:[10-10] points:[foo#10,SET-foo#10,SET] size:797 blobrefs:[(B000006: 4096); depth:1]
974+
Blob files:
975+
B000006 physical:{000006 size:[4190 (4.1KB)] vals:[4096 (4.0KB)]}
976+
977+
wait-pending-table-stats
978+
000008
979+
----
980+
num-entries: 1
981+
num-deletions: 1
982+
num-range-key-sets: 0
983+
point-deletions-bytes-estimate: 0
984+
range-deletions-bytes-estimate: 797
985+
compression: None:79

0 commit comments

Comments
 (0)