Skip to content

Commit

Permalink
feat: manual flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Jun 5, 2024
1 parent fb925f5 commit 7e74a7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests-fuzz/targets/fuzz_insert_logical_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ async fn execute_insert(ctx: FuzzContext, input: FuzzInput) -> Result<()> {

// Create logical tables
for _ in 0..input.tables {
// Creating a logical table requires altering the physical table, which needs to flush the memtable first,
// triggering the flushing manually to avoid creating logical timeout.
flush_memtable(&ctx.greptime, &physical_table_ctx.name).await?;
let translator = CreateTableExprTranslator;
let create_logical_table_expr =
generate_create_logical_table_expr(physical_table_ctx.clone(), &mut rng).unwrap();
Expand Down

0 comments on commit 7e74a7f

Please sign in to comment.