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

     1  # Starting sequence number. Each file increments the sequence number.
     2  
     3  starting-seqnum
     4  42
     5  ----
     6  
     7  # Point keys only (no range dels).
     8  
     9  load
    10  a.SET.0:
    11  b.SET.0:
    12  c.SET.0:
    13  ----
    14  file 0
    15  
    16  # Point keys only (range del lower bound).
    17  
    18  load
    19  a.RANGEDEL.0:b
    20  c.SET.0:
    21  ----
    22  file 1
    23  
    24  # Point keys only (range del upper bound).
    25  
    26  load
    27  a.SET.0:
    28  b.RANGEDEL.0:c
    29  ----
    30  file 2
    31  
    32  # Update the sequence numbers across all three files.
    33  # NB: the sequence numbers are expected to increment by one from the starting
    34  # sequence number, for each file.
    35  
    36  update-files
    37  ----
    38  file 0:
    39    combined: a#42,1-c#42,1
    40      points: a#42,1-c#42,1
    41      ranges: #0,0-#0,0
    42  file 1:
    43    combined: a#43,15-c#43,1
    44      points: a#43,15-c#43,1
    45      ranges: #0,0-#0,0
    46  file 2:
    47    combined: a#44,1-c#72057594037927935,15
    48      points: a#44,1-c#72057594037927935,15
    49      ranges: #0,0-#0,0
    50  
    51  # Reset to the starting sequence number and reset the slice of files. The
    52  # following tests consider a single file at a time.
    53  
    54  # Range keys only.
    55  
    56  reset
    57  ----
    58  
    59  load
    60  rangekey: a-c:{#0,RANGEKEYSET,@1,foo)}
    61  ----
    62  file 0
    63  
    64  update-files
    65  ----
    66  file 0:
    67    combined: a#42,21-c#72057594037927935,21
    68      points: #0,0-#0,0
    69      ranges: a#42,21-c#72057594037927935,21
    70  
    71  # Combined point and range keys (point key lower and upper bound).
    72  
    73  reset
    74  ----
    75  
    76  load
    77  a.SET.0:
    78  rangekey: b-c:{#0,RANGEKEYSET,@1,foo)}
    79  d.SET.0:
    80  ----
    81  file 0
    82  
    83  update-files
    84  ----
    85  file 0:
    86    combined: a#42,1-d#42,1
    87      points: a#42,1-d#42,1
    88      ranges: b#42,21-c#72057594037927935,21
    89  
    90  # Combined point and range keys (point key lower and range key upper bound).
    91  
    92  reset
    93  ----
    94  
    95  load
    96  a.SET.0:
    97  rangekey: b-c:{(#0,RANGEKEYSET,@1,foo)}
    98  ----
    99  file 0
   100  
   101  update-files
   102  ----
   103  file 0:
   104    combined: a#42,1-c#72057594037927935,21
   105      points: a#42,1-a#42,1
   106      ranges: b#42,21-c#72057594037927935,21
   107  
   108  # Combined point and range keys (range key lower and point key upper bound).
   109  
   110  reset
   111  ----
   112  
   113  load
   114  rangekey: a-c:{#0,RANGEKEYSET,@1,foo)}
   115  d.SET.0:
   116  ----
   117  file 0
   118  
   119  update-files
   120  ----
   121  file 0:
   122    combined: a#42,21-d#42,1
   123      points: d#42,1-d#42,1
   124      ranges: a#42,21-c#72057594037927935,21
   125  
   126  # Combined point and range keys (range key lower and upper bound).
   127  
   128  reset
   129  ----
   130  
   131  load
   132  rangekey: a-d:{#0,RANGEKEYSET,@1,foo)}
   133  c.SET.0:
   134  ----
   135  file 0
   136  
   137  update-files
   138  ----
   139  file 0:
   140    combined: a#42,21-d#72057594037927935,21
   141      points: c#42,1-c#42,1
   142      ranges: a#42,21-d#72057594037927935,21