github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/tool/testdata/manifest_dump (about)

     1  manifest dump
     2  ----
     3  requires at least 1 arg(s), only received 0
     4  
     5  manifest dump
     6  ../testdata/db-stage-2/MANIFEST-000001
     7  ----
     8  MANIFEST-000001
     9  0/0
    10    next-file-num: 2
    11  EOF
    12  
    13  manifest dump
    14  ../testdata/db-stage-4/MANIFEST-000005
    15  ----
    16  MANIFEST-000005
    17  0/0
    18    comparer:     leveldb.BytewiseComparator
    19  35/1
    20    <empty>
    21  44/2
    22    log-num:       4
    23    next-file-num: 6
    24    last-seq-num:  5
    25    added:         L0 000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
    26  EOF
    27  --- L0.0 ---
    28    000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
    29  --- L1 ---
    30  --- L2 ---
    31  --- L3 ---
    32  --- L4 ---
    33  --- L5 ---
    34  --- L6 ---
    35  
    36  manifest dump --filter-start=zoo
    37  ../testdata/db-stage-4/MANIFEST-000005
    38  ----
    39  MANIFEST-000005
    40  0/0
    41    comparer:     leveldb.BytewiseComparator
    42  EOF
    43  --- L0.0 ---
    44  --- L1 ---
    45  --- L2 ---
    46  --- L3 ---
    47  --- L4 ---
    48  --- L5 ---
    49  --- L6 ---
    50  
    51  manifest dump --filter-end=a
    52  ../testdata/db-stage-4/MANIFEST-000005
    53  ----
    54  MANIFEST-000005
    55  0/0
    56    comparer:     leveldb.BytewiseComparator
    57  EOF
    58  --- L0.0 ---
    59  --- L1 ---
    60  --- L2 ---
    61  --- L3 ---
    62  --- L4 ---
    63  --- L5 ---
    64  --- L6 ---
    65  
    66  manifest dump --filter-start=a --filter-end=d
    67  ../testdata/db-stage-4/MANIFEST-000005
    68  ----
    69  MANIFEST-000005
    70  0/0
    71    comparer:     leveldb.BytewiseComparator
    72  44/1
    73    log-num:       4
    74    next-file-num: 6
    75    last-seq-num:  5
    76    added:         L0 000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
    77  EOF
    78  --- L0.0 ---
    79    000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
    80  --- L1 ---
    81  --- L2 ---
    82  --- L3 ---
    83  --- L4 ---
    84  --- L5 ---
    85  --- L6 ---
    86  
    87  manifest dump
    88  ../testdata/db-stage-4/MANIFEST-000005
    89  --key=%x
    90  ----
    91  MANIFEST-000005
    92  0/0
    93    comparer:     leveldb.BytewiseComparator
    94  35/1
    95    <empty>
    96  44/2
    97    log-num:       4
    98    next-file-num: 6
    99    last-seq-num:  5
   100    added:         L0 000004:986<#3-#5>[626172#5,DEL-666f6f#4,SET]
   101  EOF
   102  --- L0.0 ---
   103    000004:986<#3-#5>[626172#5,DEL-666f6f#4,SET]
   104  --- L1 ---
   105  --- L2 ---
   106  --- L3 ---
   107  --- L4 ---
   108  --- L5 ---
   109  --- L6 ---
   110  
   111  manifest dump
   112  ../testdata/db-stage-4/MANIFEST-000005
   113  --key=null
   114  ----
   115  MANIFEST-000005
   116  0/0
   117    comparer:     leveldb.BytewiseComparator
   118  35/1
   119    <empty>
   120  44/2
   121    log-num:       4
   122    next-file-num: 6
   123    last-seq-num:  5
   124    added:         L0 000004:986<#3-#5>
   125  EOF
   126  --- L0.0 ---
   127    000004:986<#3-#5>
   128  --- L1 ---
   129  --- L2 ---
   130  --- L3 ---
   131  --- L4 ---
   132  --- L5 ---
   133  --- L6 ---
   134  
   135  manifest dump
   136  ../testdata/db-stage-4/MANIFEST-000005
   137  --key=pretty
   138  ----
   139  MANIFEST-000005
   140  0/0
   141    comparer:     leveldb.BytewiseComparator
   142  35/1
   143    <empty>
   144  44/2
   145    log-num:       4
   146    next-file-num: 6
   147    last-seq-num:  5
   148    added:         L0 000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
   149  EOF
   150  --- L0.0 ---
   151    000004:986<#3-#5>[bar#5,DEL-foo#4,SET]
   152  --- L1 ---
   153  --- L2 ---
   154  --- L3 ---
   155  --- L4 ---
   156  --- L5 ---
   157  --- L6 ---
   158  
   159  manifest dump
   160  ../testdata/db-stage-4/MANIFEST-000005
   161  --key=pretty:test-comparer
   162  ----
   163  MANIFEST-000005
   164  0/0
   165    comparer:     leveldb.BytewiseComparator
   166  35/1
   167    <empty>
   168  44/2
   169    log-num:       4
   170    next-file-num: 6
   171    last-seq-num:  5
   172    added:         L0 000004:986<#3-#5>[test formatter: bar#5,DEL-test formatter: foo#4,SET]
   173  EOF
   174  --- L0.0 ---
   175    000004:986<#3-#5>[test formatter: bar#5,DEL-test formatter: foo#4,SET]
   176  --- L1 ---
   177  --- L2 ---
   178  --- L3 ---
   179  --- L4 ---
   180  --- L5 ---
   181  --- L6 ---
   182  
   183  manifest check
   184  ----
   185  requires at least 1 arg(s), only received 0
   186  
   187  manifest check
   188  ../testdata/db-stage-1/MANIFEST-000001
   189  ----
   190  OK
   191  
   192  manifest check
   193  ../testdata/db-stage-2/MANIFEST-000001
   194  ----
   195  OK
   196  
   197  manifest check
   198  ../testdata/db-stage-3/MANIFEST-000005
   199  ----
   200  OK
   201  
   202  manifest check
   203  ../testdata/db-stage-4/MANIFEST-000005
   204  ----
   205  OK
   206  
   207  manifest dump
   208  ./testdata/MANIFEST-invalid
   209  ----
   210  MANIFEST-invalid
   211  0/0
   212    comparer:     leveldb.BytewiseComparator
   213    log-num:       2
   214    next-file-num: 5
   215    last-seq-num:  20
   216    added:         L6 000001:0<#2-#5>[#0,DEL-#0,DEL]
   217  65/1
   218    comparer:     leveldb.BytewiseComparator
   219    log-num:       3
   220    next-file-num: 5
   221    last-seq-num:  20
   222    added:         L6 000002:0<#1-#4>[#0,DEL-#0,DEL]
   223  EOF
   224  pebble: files 000002 and 000001 collided on sort keys
   225  
   226  manifest check
   227  ./testdata/MANIFEST-invalid
   228  ----
   229  MANIFEST-invalid: offset: 65 err: pebble: files 000002 and 000001 collided on sort keys
   230  Version state before failed Apply
   231  --- L0 ---
   232  --- L1 ---
   233  --- L2 ---
   234  --- L3 ---
   235  --- L4 ---
   236  --- L5 ---
   237  --- L6 ---
   238    000001:0<#2-#5>[#0,DEL-#0,DEL]
   239  Version edit that failed
   240    added: L6 000002:0<#1-#4>[#0,DEL-#0,DEL]
   241  
   242  manifest dump
   243  ./testdata/find-db/MANIFEST-000001
   244  ----
   245  MANIFEST-000001
   246  0/0
   247    comparer:     alt-comparer
   248    next-file-num: 2
   249  25/1
   250    log-num:       2
   251    next-file-num: 3
   252  36/2
   253    log-num:       4
   254    next-file-num: 6
   255    last-seq-num:  5
   256    added:         L0 000005:784<#1-#5>[aaa#1,SET-ccc#5,MERGE] (2021-04-01T20:24:02Z)
   257  88/3
   258    next-file-num: 6
   259    last-seq-num:  5
   260    deleted:       L0 000005
   261    added:         L6 000005:784<#1-#5>[aaa#1,SET-ccc#5,MERGE] (2021-04-01T20:24:02Z)
   262  141/4
   263    next-file-num: 7
   264    last-seq-num:  6
   265    added:         L0 000006:817<#6-#6>[bbb#6,SET-ccc#6,SET] (2021-04-01T20:24:02Z)
   266  191/5
   267    next-file-num: 8
   268    last-seq-num:  7
   269    added:         L6 000007:808<#7-#7>[ddd#7,SET-ddd#7,SET] (2021-04-01T20:24:02Z)
   270  241/6
   271    next-file-num: 9
   272    last-seq-num:  7
   273    deleted:       L0 000006
   274    deleted:       L6 000005
   275    added:         L6 000008:791<#0-#6>[aaa#0,SET-ccc#0,MERGE] (2021-04-01T20:24:02Z)
   276  297/7
   277    log-num:       9
   278    next-file-num: 11
   279    last-seq-num:  10
   280    added:         L0 000010:834<#8-#10>[aaa#8,DEL-eee#inf,RANGEDEL] (2021-04-01T20:24:02Z)
   281  349/8
   282    next-file-num: 12
   283    last-seq-num:  10
   284    deleted:       L0 000010
   285    deleted:       L6 000007
   286    deleted:       L6 000008
   287    added:         L6 000011:898<#0-#10>[aaa#8,DEL-eee#inf,RANGEDEL] (2021-04-01T20:24:02Z)
   288  408/9
   289    next-file-num: 12
   290    last-seq-num:  10
   291    deleted:       L6 000011
   292  EOF
   293  --- L0 ---
   294  --- L1 ---
   295  --- L2 ---
   296  --- L3 ---
   297  --- L4 ---
   298  --- L5 ---
   299  --- L6 ---
   300  
   301  manifest dump --filter-start=bat --filter-end=cat
   302  ./testdata/find-db/MANIFEST-000001
   303  ----
   304  MANIFEST-000001
   305  0/0
   306    comparer:     alt-comparer
   307    next-file-num: 2
   308  36/1
   309    log-num:       4
   310    next-file-num: 6
   311    last-seq-num:  5
   312    added:         L0 000005:784<#1-#5>[aaa#1,SET-ccc#5,MERGE] (2021-04-01T20:24:02Z)
   313  88/2
   314    next-file-num: 6
   315    last-seq-num:  5
   316    deleted:       L0 000005
   317    added:         L6 000005:784<#1-#5>[aaa#1,SET-ccc#5,MERGE] (2021-04-01T20:24:02Z)
   318  141/3
   319    next-file-num: 7
   320    last-seq-num:  6
   321    added:         L0 000006:817<#6-#6>[bbb#6,SET-ccc#6,SET] (2021-04-01T20:24:02Z)
   322  241/4
   323    next-file-num: 9
   324    last-seq-num:  7
   325    deleted:       L0 000006
   326    deleted:       L6 000005
   327    added:         L6 000008:791<#0-#6>[aaa#0,SET-ccc#0,MERGE] (2021-04-01T20:24:02Z)
   328  297/5
   329    log-num:       9
   330    next-file-num: 11
   331    last-seq-num:  10
   332    added:         L0 000010:834<#8-#10>[aaa#8,DEL-eee#inf,RANGEDEL] (2021-04-01T20:24:02Z)
   333  349/6
   334    next-file-num: 12
   335    last-seq-num:  10
   336    deleted:       L0 000010
   337    deleted:       L6 000007
   338    deleted:       L6 000008
   339    added:         L6 000011:898<#0-#10>[aaa#8,DEL-eee#inf,RANGEDEL] (2021-04-01T20:24:02Z)
   340  408/7
   341    next-file-num: 12
   342    last-seq-num:  10
   343    deleted:       L6 000011
   344  EOF
   345  --- L0 ---
   346  --- L1 ---
   347  --- L2 ---
   348  --- L3 ---
   349  --- L4 ---
   350  --- L5 ---
   351  --- L6 ---
   352  
   353  manifest check
   354  ./testdata/mixed/MANIFEST-000001
   355  ----
   356  OK
   357  
   358  manifest dump
   359  ./testdata/mixed/MANIFEST-000001
   360  ----
   361  MANIFEST-000001
   362  0/0
   363    comparer:     pebble.internal.testkeys
   364    next-file-num: 2
   365  37/1
   366    log-num:       2
   367    next-file-num: 3
   368  48/2
   369    log-num:       4
   370    next-file-num: 6
   371    last-seq-num:  29
   372    added:         L0 000005:1166<#1-#29>[a#29,RANGEKEYDEL-z@1#26,SET] (2022-08-12T23:21:28Z)
   373  EOF
   374  --- L0.0 ---
   375    000005:1166<#1-#29>[a#29,RANGEKEYDEL-z@1#26,SET]
   376  --- L1 ---
   377  --- L2 ---
   378  --- L3 ---
   379  --- L4 ---
   380  --- L5 ---
   381  --- L6 ---