github.com/cockroachdb/pebble@v1.1.2/testdata/batch_reader (about)

     1  scan
     2  ----
     3  Count: 0
     4  eof
     5  
     6  scan
     7  ffffffffffffffffffffffffffffffffffffffffffffffff
     8  ----
     9  Count: 4294967295
    10  err: invalid key kind 0xff: pebble: invalid batch
    11  
    12  scan
    13  0000000000000000 01000000   # Seqnum = 0, Count = 1
    14  00 01 61                    # DEL "a"
    15  ----
    16  Count: 1
    17  DEL: "a": ""
    18  eof
    19  
    20  scan
    21  0000000000000000 01000000   # Seqnum = 0, Count = 1
    22  01 01 62 01 62              # SET "b" = "b"
    23  ----
    24  Count: 1
    25  SET: "b": "b"
    26  eof
    27  
    28  scan
    29  0000000000000000 01000000   # Seqnum = 0, Count = 1
    30  01 01 62 01 62              # SET "b" = "b"
    31  ----
    32  Count: 1
    33  SET: "b": "b"
    34  eof
    35  
    36  scan
    37  0000000000000000 02000000   # Seqnum = 0, Count = 2
    38  00 01 61                    # DEL "a"
    39  01 01 62 01 62              # SET "b" = "b"
    40  ----
    41  Count: 2
    42  DEL: "a": ""
    43  SET: "b": "b"
    44  eof
    45  
    46  scan
    47  0000000000000000 03000000   # Seqnum = 0, Count = 3
    48  00 01 61                    # DEL "a"
    49  01 01 62 01 62              # SET "b" = "b"
    50  0F 01 62 01 63              # RANGEDEL "b" = "c"
    51  ----
    52  Count: 3
    53  DEL: "a": ""
    54  SET: "b": "b"
    55  RANGEDEL: "b": "c"
    56  eof
    57  
    58  scan
    59  0000000000000000 03000000   # Seqnum = 0, Count = 3
    60  00 01 61                    # DEL "a"
    61  01 01 62 01 62              # SET "b" = "b"
    62  0F 01 62 01                 # RANGEDEL "b"... missing end key string data
    63  ----
    64  Count: 3
    65  DEL: "a": ""
    66  SET: "b": "b"
    67  err: decoding RANGEDEL value: pebble: invalid batch
    68  
    69  scan
    70  0000000000000000 03000000   # Seqnum = 0, Count = 3
    71  00 01 61                    # DEL "a"
    72  01 01 62 01 62              # SET "b" = "b"
    73  0F 01 62 01                 # RANGEDEL "b"... missing end key string data
    74  ----
    75  Count: 3
    76  DEL: "a": ""
    77  SET: "b": "b"
    78  err: decoding RANGEDEL value: pebble: invalid batch
    79  
    80  
    81  scan
    82  0000000000000000 03000000   # Seqnum = 0, Count = 3
    83  00 01 61                    # DEL "a"
    84  01 01 62 01 62              # SET "b" = "b"
    85  1F 01 62 01                 # "1F" kind is garbage
    86  ----
    87  Count: 3
    88  DEL: "a": ""
    89  SET: "b": "b"
    90  err: invalid key kind 0x1f: pebble: invalid batch
    91  
    92  scan
    93  0000000000000000 01000000   # Seqnum = 0, Count = 1
    94  01 01                       # SET missing user key string data
    95  ----
    96  Count: 1
    97  err: decoding user key: pebble: invalid batch