open
----
mkdir-all: db 0755
open-dir: .
sync: .
close: .
open-dir: db
close: db
mkdir-all: wal 0755
open-dir: .
sync: .
close: .
open-dir: wal
close: wal
open-dir: db
lock: db/LOCK
open-dir: db
open-dir: db
open-dir: db
create: db/MANIFEST-000001
sync: db/MANIFEST-000001
create: db/marker.manifest.000001.MANIFEST-000001
close: db/marker.manifest.000001.MANIFEST-000001
sync: db
[JOB 1] MANIFEST created 000001
open-dir: wal
create: wal/000002.log
sync: wal
[JOB 1] WAL created 000002
create: db/marker.format-version.000001.014
close: db/marker.format-version.000001.014
sync: db
upgraded to format version: 014
create: db/marker.format-version.000002.015
close: db/marker.format-version.000002.015
remove: db/marker.format-version.000001.014
sync: db
upgraded to format version: 015
create: db/marker.format-version.000003.016
close: db/marker.format-version.000003.016
remove: db/marker.format-version.000002.015
sync: db
upgraded to format version: 016
create: db/marker.format-version.000004.017
close: db/marker.format-version.000004.017
remove: db/marker.format-version.000003.016
sync: db
upgraded to format version: 017
create: db/marker.format-version.000005.018
close: db/marker.format-version.000005.018
remove: db/marker.format-version.000004.017
sync: db
upgraded to format version: 018
create: db/marker.format-version.000006.019
close: db/marker.format-version.000006.019
remove: db/marker.format-version.000005.018
sync: db
upgraded to format version: 019
create: db/marker.format-version.000007.020
close: db/marker.format-version.000007.020
remove: db/marker.format-version.000006.019
sync: db
upgraded to format version: 020
create: db/marker.format-version.000008.021
close: db/marker.format-version.000008.021
remove: db/marker.format-version.000007.020
sync: db
upgraded to format version: 021
create: db/marker.format-version.000009.022
close: db/marker.format-version.000009.022
remove: db/marker.format-version.000008.021
sync: db
upgraded to format version: 022
create: db/marker.format-version.000010.023
close: db/marker.format-version.000010.023
remove: db/marker.format-version.000009.022
sync: db
upgraded to format version: 023
create: db/marker.format-version.000011.024
close: db/marker.format-version.000011.024
remove: db/marker.format-version.000010.023
sync: db
upgraded to format version: 024
create: db/temporary.000003.dbtmp
sync: db/temporary.000003.dbtmp
close: db/temporary.000003.dbtmp
rename: db/temporary.000003.dbtmp -> db/OPTIONS-000003
sync: db

flush
----
sync-data: wal/000002.log
sync-data: wal/000002.log
close: wal/000002.log
create: wal/000004.log
sync: wal
[JOB 2] WAL created 000004
[JOB 3] flushing 1 memtable (100B) to L0
create: db/000005.sst
[JOB 3] flushing: sstable created 000005
sync-data: db/000005.sst
close: db/000005.sst
sync: db
create: db/MANIFEST-000006
close: db/MANIFEST-000001
sync: db/MANIFEST-000006
create: db/marker.manifest.000002.MANIFEST-000006
close: db/marker.manifest.000002.MANIFEST-000006
remove: db/marker.manifest.000001.MANIFEST-000001
sync: db
[JOB 3] MANIFEST created 000006
[JOB 3] flushed 1 memtable (100B) to L0 [000005] (761B), in 1.0s (2.0s total), output rate 761B/s

compact
----
sync-data: wal/000004.log
sync-data: wal/000004.log
close: wal/000004.log
reuseForWrite: wal/000002.log -> wal/000007.log
sync: wal
[JOB 4] WAL created 000007 (recycled 000002)
[JOB 5] flushing 1 memtable (100B) to L0
create: db/000008.sst
[JOB 5] flushing: sstable created 000008
sync-data: db/000008.sst
close: db/000008.sst
sync: db
create: db/MANIFEST-000009
close: db/MANIFEST-000006
sync: db/MANIFEST-000009
create: db/marker.manifest.000003.MANIFEST-000009
close: db/marker.manifest.000003.MANIFEST-000009
remove: db/marker.manifest.000002.MANIFEST-000006
sync: db
[JOB 5] MANIFEST created 000009
[JOB 5] flushed 1 memtable (100B) to L0 [000008] (761B), in 1.0s (2.0s total), output rate 761B/s
remove: db/MANIFEST-000001
[JOB 5] MANIFEST deleted 000001
[JOB 6] compacting(default) L0 [000005 000008] (1.5KB) Score=0.00 + L6 [] (0B) Score=0.00; OverlappingRatio: Single 0.00, Multi 0.00
open: db/000005.sst (options: *vfs.randomReadsOption)
read-at(700, 61): db/000005.sst
read-at(650, 50): db/000005.sst
read-at(119, 531): db/000005.sst
open: db/000008.sst (options: *vfs.randomReadsOption)
read-at(700, 61): db/000008.sst
read-at(650, 50): db/000008.sst
read-at(119, 531): db/000008.sst
read-at(78, 41): db/000005.sst
open: db/000005.sst (options: *vfs.sequentialReadsOption)
read-at(0, 78): db/000005.sst
read-at(78, 41): db/000008.sst
open: db/000008.sst (options: *vfs.sequentialReadsOption)
read-at(0, 78): db/000008.sst
close: db/000008.sst
close: db/000005.sst
create: db/000010.sst
[JOB 6] compacting: sstable created 000010
sync-data: db/000010.sst
close: db/000010.sst
sync: db
create: db/MANIFEST-000011
close: db/MANIFEST-000009
sync: db/MANIFEST-000011
create: db/marker.manifest.000004.MANIFEST-000011
close: db/marker.manifest.000004.MANIFEST-000011
remove: db/marker.manifest.000003.MANIFEST-000009
sync: db
[JOB 6] MANIFEST created 000011
[JOB 6] compacted(default) L0 [000005 000008] (1.5KB) Score=0.00 + L6 [] (0B) Score=0.00 -> L6 [000010] (757B), in 1.0s (3.0s total), output rate 757B/s
close: db/000005.sst
close: db/000008.sst
remove: db/MANIFEST-000006
[JOB 6] MANIFEST deleted 000006
remove: db/000005.sst
[JOB 6] sstable deleted 000005
remove: db/000008.sst
[JOB 6] sstable deleted 000008

disable-file-deletions
----

flush
----
sync-data: wal/000007.log
sync-data: wal/000007.log
close: wal/000007.log
reuseForWrite: wal/000004.log -> wal/000012.log
sync: wal
[JOB 7] WAL created 000012 (recycled 000004)
[JOB 8] flushing 1 memtable (100B) to L0
create: db/000013.sst
[JOB 8] flushing: sstable created 000013
sync-data: db/000013.sst
close: db/000013.sst
sync: db
create: db/MANIFEST-000014
close: db/MANIFEST-000011
sync: db/MANIFEST-000014
create: db/marker.manifest.000005.MANIFEST-000014
close: db/marker.manifest.000005.MANIFEST-000014
remove: db/marker.manifest.000004.MANIFEST-000011
sync: db
[JOB 8] MANIFEST created 000014
[JOB 8] flushed 1 memtable (100B) to L0 [000013] (761B), in 1.0s (2.0s total), output rate 761B/s

enable-file-deletions
----
remove: db/MANIFEST-000009
[JOB 9] MANIFEST deleted 000009

ingest
----
open: ext/0
read-at(696, 61): ext/0
read-at(646, 50): ext/0
read-at(122, 524): ext/0
read-at(122, 524): ext/0
read-at(81, 41): ext/0
read-at(0, 81): ext/0
close: ext/0
link: ext/0 -> db/000015.sst
[JOB 10] ingesting: sstable created 000015
sync: db
create: db/MANIFEST-000016
close: db/MANIFEST-000014
sync: db/MANIFEST-000016
create: db/marker.manifest.000006.MANIFEST-000016
close: db/marker.manifest.000006.MANIFEST-000016
remove: db/marker.manifest.000005.MANIFEST-000014
sync: db
[JOB 10] MANIFEST created 000016
remove: db/MANIFEST-000011
[JOB 10] MANIFEST deleted 000011
remove: ext/0
[JOB 10] ingested L0:000015 (757B)

metrics
----
      |                             |                |       |   ingested   |     moved    |    written   |       |    amp   |    val sep
level | tables  size val-bl vtables | score  ff  cff |   in  | tables  size | tables  size | tables  size |  read |   r   w  | refsz  valblk
------+-----------------------------+----------------+-------+--------------+--------------+--------------+-------+----------+--------------
    0 |     2  1.5KB     0B       0 |    - 0.40 0.40 |   97B |     1   757B |     0     0B |     3  2.2KB |    0B |   2 23.5 |    0B      0B
    1 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    2 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    3 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    4 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    5 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    6 |     1   757B     0B       0 |    - 0.00 0.00 | 1.5KB |     0     0B |     0     0B |     1   757B | 1.5KB |   1 0.50 |    0B      0B
total |     3  2.2KB     0B       0 |    -    -    - |  854B |     1   757B |     0     0B |     4  3.8KB | 1.5KB |   3 4.56 |    0B      0B
--------------------------------------------------------------------------------------------------------------------------------------------
WAL: 1 files (0B)  in: 48B  written: 97B (102% overhead)
Flushes: 3
Compactions: 1  estimated debt: 2.2KB  in progress: 0 (0B)  canceled: 0 (0B)  failed: 0  problem spans: 0
             default: 1  delete: 0  elision: 0  move: 0  read: 0  tombstone-density: 0  rewrite: 0  copy: 0  multi-level: 0  blob-file-rewrite:  0
MemTables: 1 (256KB)  zombie: 1 (256KB)
Zombie tables: 0 (0B, local: 0B)
Backing tables: 0 (0B)
Virtual tables: 0 (0B)
Local tables size: 2.2KB
Compression types: snappy: 3
Table stats: initial load in progress
Block cache: 2 entries (784B)  hit rate: 0.0%
File cache: 0 tables, 0 blobfiles (0B)  hit rate: 50.0%
Range key sets: 0  Tombstones: 0  Total missized tombstones encountered: 0
Snapshots: 0  earliest seq num: 0
Table iters: 0
Filter utility: 0.0%
Ingestions: 1  as flushable: 0 (0B in 0 tables)
Cgo memory usage: 0B  block cache: 0B (data: 0B, maps: 0B, entries: 0B)  memtables: 0B

# Set up a scenario where the table to be ingested overlaps with the memtable.
# The table is ingested as a flushable. The flush metrics refect the flushed
# ingestion.

ingest-flushable
----
sync-data: wal/000012.log
open: ext/a
read-at(696, 61): ext/a
read-at(646, 50): ext/a
read-at(122, 524): ext/a
read-at(122, 524): ext/a
read-at(81, 41): ext/a
read-at(0, 81): ext/a
close: ext/a
open: ext/b
read-at(696, 61): ext/b
read-at(646, 50): ext/b
read-at(122, 524): ext/b
read-at(122, 524): ext/b
read-at(81, 41): ext/b
read-at(0, 81): ext/b
close: ext/b
link: ext/a -> db/000017.sst
[JOB 11] ingesting: sstable created 000017
link: ext/b -> db/000018.sst
[JOB 11] ingesting: sstable created 000018
sync: db
sync-data: wal/000012.log
close: wal/000012.log
reuseForWrite: wal/000007.log -> wal/000019.log
sync: wal
[JOB 12] WAL created 000019 (recycled 000007)
sync-data: wal/000019.log
sync-data: wal/000019.log
close: wal/000019.log
create: wal/000020.log
sync: wal
[JOB 13] WAL created 000020
remove: ext/a
remove: ext/b
[JOB 11] ingested as flushable 000017 (757B), 000018 (757B)
sync-data: wal/000020.log
close: wal/000020.log
create: wal/000021.log
sync: wal
[JOB 14] WAL created 000021
[JOB 15] flushing 1 memtable (100B) to L0
create: db/000022.sst
[JOB 15] flushing: sstable created 000022
sync-data: db/000022.sst
close: db/000022.sst
sync: db
sync: db/MANIFEST-000016
[JOB 15] flushed 1 memtable (100B) to L0 [000022] (761B), in 1.0s (2.0s total), output rate 761B/s
[JOB 16] flushing 2 ingested tables
create: db/MANIFEST-000023
close: db/MANIFEST-000016
sync: db/MANIFEST-000023
create: db/marker.manifest.000007.MANIFEST-000023
close: db/marker.manifest.000007.MANIFEST-000023
remove: db/marker.manifest.000006.MANIFEST-000016
sync: db
[JOB 16] MANIFEST created 000023
[JOB 16] flushed 2 ingested flushables L0:000017 (757B) + L6:000018 (757B) in 1.0s (2.0s total), output rate 1.5KB/s
remove: db/MANIFEST-000014
[JOB 16] MANIFEST deleted 000014
[JOB 17] flushing 1 memtable (100B) to L0
sync: db/MANIFEST-000023
[JOB 17] flush error: pebble: empty table

metrics
----
      |                             |                |       |   ingested   |     moved    |    written   |       |    amp   |    val sep
level | tables  size val-bl vtables | score  ff  cff |   in  | tables  size | tables  size | tables  size |  read |   r   w  | refsz  valblk
------+-----------------------------+----------------+-------+--------------+--------------+--------------+-------+----------+--------------
    0 |     4  3.0KB     0B       0 |    - 0.80 0.80 |  132B |     2  1.5KB |     0     0B |     4  3.0KB |    0B |   4 23.1 |    0B      0B
    1 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    2 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    3 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    4 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    5 |     0     0B     0B       0 |    -    0    0 |    0B |     0     0B |     0     0B |     0     0B |    0B |   0    0 |    0B      0B
    6 |     2  1.5KB     0B       0 |    - 0.00 0.00 | 1.5KB |     1   757B |     0     0B |     1   757B | 1.5KB |   1 0.50 |    0B      0B
total |     6  4.4KB     0B       0 |    -    -    - | 2.3KB |     3  2.2KB |     0     0B |     5  6.1KB | 1.5KB |   5 2.58 |    0B      0B
--------------------------------------------------------------------------------------------------------------------------------------------
WAL: 1 files (0B)  in: 82B  written: 132B (61% overhead)
Flushes: 6
Compactions: 1  estimated debt: 4.4KB  in progress: 0 (0B)  canceled: 0 (0B)  failed: 0  problem spans: 0
             default: 1  delete: 0  elision: 0  move: 0  read: 0  tombstone-density: 0  rewrite: 0  copy: 0  multi-level: 0  blob-file-rewrite:  0
MemTables: 1 (512KB)  zombie: 1 (512KB)
Zombie tables: 0 (0B, local: 0B)
Backing tables: 0 (0B)
Virtual tables: 0 (0B)
Local tables size: 4.4KB
Compression types: snappy: 6
Table stats: initial load in progress
Block cache: 6 entries (2.3KB)  hit rate: 0.0%
File cache: 0 tables, 0 blobfiles (0B)  hit rate: 50.0%
Range key sets: 0  Tombstones: 0  Total missized tombstones encountered: 0
Snapshots: 0  earliest seq num: 0
Table iters: 0
Filter utility: 0.0%
Ingestions: 2  as flushable: 1 (1.5KB in 2 tables)
Cgo memory usage: 0B  block cache: 0B (data: 0B, maps: 0B, entries: 0B)  memtables: 0B

sstables
----
0:
  13:[a-a]
  15:[a-a]
  22:[a-a]
  17:[a-a]
6:
  10:[a-a]
  18:[b-b]

checkpoint
----
mkdir-all: checkpoint 0755
open-dir: .
sync: .
close: .
open-dir: checkpoint
open: db/OPTIONS-000003
create: checkpoint/OPTIONS-000003
sync-data: checkpoint/OPTIONS-000003
close: checkpoint/OPTIONS-000003
close: db/OPTIONS-000003
open-dir: checkpoint
create: checkpoint/marker.format-version.000001.024
sync-data: checkpoint/marker.format-version.000001.024
close: checkpoint/marker.format-version.000001.024
sync: checkpoint
close: checkpoint
link: db/000013.sst -> checkpoint/000013.sst
link: db/000015.sst -> checkpoint/000015.sst
link: db/000022.sst -> checkpoint/000022.sst
link: db/000017.sst -> checkpoint/000017.sst
link: db/000010.sst -> checkpoint/000010.sst
link: db/000018.sst -> checkpoint/000018.sst
open: db/MANIFEST-000023 (options: *vfs.sequentialReadsOption)
create: checkpoint/MANIFEST-000023
sync-data: checkpoint/MANIFEST-000023
close: checkpoint/MANIFEST-000023
close: db/MANIFEST-000023
open-dir: checkpoint
create: checkpoint/marker.manifest.000001.MANIFEST-000023
sync-data: checkpoint/marker.manifest.000001.MANIFEST-000023
close: checkpoint/marker.manifest.000001.MANIFEST-000023
sync: checkpoint
close: checkpoint
open: wal/000021.log (options: *vfs.sequentialReadsOption)
create: checkpoint/000021.log
sync-data: checkpoint/000021.log
close: checkpoint/000021.log
close: wal/000021.log
sync: checkpoint
close: checkpoint

enable-file-deletions
----
pebble: file deletion disablement invariant violated

close
----
close: db
sync-data: wal/000021.log
close: wal/000021.log
close: wal
close: db/MANIFEST-000023
close: db
close: db
close: db
