github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/sstable/testdata/reader_bpf/Pebblev2/iter (about) 1 # Test case for bug https://github.com/cockroachdb/pebble/issues/2036 Build 2 # sstable with two-level index, with two data blocks in each lower-level index 3 # block. 4 build block-size=1 index-block-size=40 print-layout=true 5 c@10.SET.10:cAT10 6 d@7.SET.9:dAT7 7 e@15.SET.8:eAT15 8 f@7.SET.5:fAT7 9 ---- 10 index entries: 11 d@7: size 53 12 c@10: size 28 13 d@7: size 26 14 g: size 51 15 e@15: size 28 16 g: size 26 17 18 iter 19 first 20 next 21 next 22 next 23 ---- 24 <c@10:10> 25 <d@7:9> 26 <e@15:8> 27 <f@7:5> 28 29 30 # The block property filter matches data block 2 and 4. 31 iter block-property-filter=(7,8) 32 first 33 next 34 ---- 35 <d@7:9> 36 <f@7:5> 37 38 # Use the same block property filter, but use seeks to find these entries. 39 # With the bug the second seek-ge below would step to the second lower-level 40 # index block and only see the entry in the data block 4. 41 iter block-property-filter=(7,8) 42 set-bounds lower=a upper=c 43 seek-ge a 44 seek-ge b true 45 set-bounds lower=c upper=g 46 seek-ge c 47 next 48 next 49 ---- 50 . 51 . 52 . 53 . 54 <d@7:9> 55 <f@7:5> 56 .