Skip to content

Commit

Permalink
db: trigger flushable ingest in TestDeterminism
Browse files Browse the repository at this point in the history
  • Loading branch information
aadityasondhi committed Apr 1, 2024
1 parent cc5b658 commit eae0efc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions testdata/determinism
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,33 @@ maybe-compact
----
6:maybe-compact

# Create a memtable overlap with the ingested sst to trigger a flushable ingest.
batch
set alpha 5
----
7:batch

ingest-and-excise contains-excise-tombstone excise=a-b ext-ab
----
7:ingest-and-excise
8:ingest-and-excise

ingest-and-excise contains-excise-tombstone excise=b-c ext-bc
----
8:ingest-and-excise
9:ingest-and-excise

# Re-run the same sequence of operations 10 times, injecting random latency between
# some steps and within some IO operations. Randomize the ordering of the last four
# steps.

run io-latency=(.1,100µs) step-latency=(.2,5ms) count=10
sequential( 0:define 1:build 2:build reorder( 3:batch 4:batch 5:flush 6:maybe-compact 7:ingest-and-excise 8:ingest-and-excise ) )
sequential( 0:define 1:build 2:build reorder( 3:batch 4:batch 5:flush 6:maybe-compact 7:batch 8:ingest-and-excise 9:ingest-and-excise ) )
----
ok

# Re-run the same sequence of operations 10 times, injecting random latency between
# some steps and within some IO operations. Run the last four steps in parallel.

run io-latency=(.1,100µs) step-latency=(.2,5ms) count=10
sequential( 0:define 1:build 2:build parallel( 3:batch 4:batch 5:flush 6:maybe-compact 7:ingest-and-excise 8:ingest-and-excise ) )
sequential( 0:define 1:build 2:build parallel( 3:batch 4:batch 5:flush 6:maybe-compact 7:batch 8:ingest-and-excise 9:ingest-and-excise ) )
----
ok

0 comments on commit eae0efc

Please sign in to comment.