github.com/cockroachdb/pebble@v1.1.2/internal/manifest/testdata/version_edit_apply (about)

     1  apply
     2   L0
     3    1:[a#1,SET-b#2,SET]
     4    2:[c#3,SET-d#4,SET]
     5  edit
     6   delete
     7    L0
     8     1
     9   add
    10    L2
    11    1:[a#1,SET-b#2,SET]
    12    4:[c#3,SET-d#4,SET]
    13  ----
    14  0.0:
    15    000002:[c#3,SET-d#4,SET]
    16  2:
    17    000001:[a#1,SET-b#2,SET]
    18    000004:[c#3,SET-d#4,SET]
    19  zombies []
    20  
    21  apply
    22   L0
    23    1:[a#1,SET-b#2,SET]
    24    2:[c#3,SET-d#4,SET]
    25  edit
    26   delete
    27    L1
    28     1
    29  ----
    30  pebble: internal error: No current or added files but have deleted files: 1
    31  
    32  apply
    33   L0
    34    1:[a#1,SET-c#2,SET]
    35    2:[c#3,SET-d#4,SET]
    36  edit
    37   delete
    38    L0
    39     1
    40   add
    41    L2
    42     1:[a#1,SET-c#2,SET]
    43     4:[b#3,SET-d#4,SET]
    44  ----
    45  pebble: internal error: L2 files 000001 and 000004 have overlapping ranges: [a#1,SET-c#2,SET] vs [b#3,SET-d#4,SET]
    46  
    47  apply
    48   L0
    49    1:[a#1,SET-c#2,SET]
    50    2:[c#3,SET-d#4,SET]
    51  edit
    52   add
    53    L0
    54     4:[b#3,SET-d#5,SET]
    55  ----
    56  0.2:
    57    000004:[b#3,SET-d#5,SET]
    58  0.1:
    59    000002:[c#3,SET-d#4,SET]
    60  0.0:
    61    000001:[a#1,SET-c#2,SET]
    62  zombies []
    63  
    64  apply
    65   L0
    66     1:[a#1,SET-c#2,SET]
    67     2:[c#3,SET-d#4,SET]
    68  edit
    69   add
    70    L0
    71     4:[b#0,SET-d#0,SET]
    72  ----
    73  0.2:
    74    000002:[c#3,SET-d#4,SET]
    75  0.1:
    76    000001:[a#1,SET-c#2,SET]
    77  0.0:
    78    000004:[b#0,SET-d#0,SET]
    79  zombies []
    80  
    81  
    82  apply
    83  edit
    84   add
    85    L0
    86     1:[a#1,SET-c#2,SET]
    87     4:[b#3,SET-d#5,SET]
    88  ----
    89  0.1:
    90    000004:[b#3,SET-d#5,SET]
    91  0.0:
    92    000001:[a#1,SET-c#2,SET]
    93  zombies []
    94  
    95  apply
    96   L0
    97    1:[a#1,SET-c#2,SET]
    98  ----
    99  0.0:
   100    000001:[a#1,SET-c#2,SET]
   101  zombies []
   102  
   103  apply
   104   L2
   105    3:[b#1,SET-c#2,SET]
   106    4:[d#3,SET-f#4,SET]
   107    5:[h#3,SET-h#2,SET]
   108    2:[n#5,SET-q#3,SET]
   109    1:[r#2,SET-t#1,SET]
   110  edit
   111   delete
   112    L2
   113     4
   114     1
   115   add
   116    L2
   117     6:[a#10,SET-a#7,SET]
   118     7:[e#1,SET-g#2,SET]
   119     10:[j#3,SET-m#2,SET]
   120  ----
   121  2:
   122    000006:[a#10,SET-a#7,SET]
   123    000003:[b#1,SET-c#2,SET]
   124    000007:[e#1,SET-g#2,SET]
   125    000005:[h#3,SET-h#2,SET]
   126    000010:[j#3,SET-m#2,SET]
   127    000002:[n#5,SET-q#3,SET]
   128  zombies [{1} {4}]
   129  
   130  apply
   131  edit
   132   add
   133    L2
   134     10:[j#3,SET-m#2,SET]
   135     6:[a#10,SET-a#7,SET]
   136  ----
   137  2:
   138    000006:[a#10,SET-a#7,SET]
   139    000010:[j#3,SET-m#2,SET]
   140  zombies []
   141  
   142  # Verify that the zombies map is populated correctly.
   143  
   144  apply
   145   L0
   146    1:[a#1,SET-b#2,SET]
   147   L1
   148    2:[c#3,SET-d#2,SET]
   149  edit
   150   delete
   151    L0
   152     1
   153    L1
   154     2
   155  ----
   156  zombies [{1} {2}]
   157  
   158  # Deletion of a non-existent table results in an error.
   159  
   160  apply
   161   L0
   162    1:[a#1,SET-b#2,SET]
   163  edit
   164   delete
   165    L0
   166     2
   167  ----
   168  pebble: file deleted L0.000002 before it was inserted
   169  
   170  apply
   171   L0
   172    1:[a#1,SET-b#2,SET]
   173  edit
   174   delete
   175    L0
   176     1
   177   add
   178    L2
   179    1:[a#1,SET-b#2,SET]
   180    4:[c#3,SET-d#4,SET]
   181    5:[s#3,SET-z#4,SET]
   182  edit
   183    delete
   184      L2
   185       1
   186      L2
   187       4
   188  ----
   189  2:
   190    000005:[s#3,SET-z#4,SET]
   191  zombies []