Skip to content

Commit

Permalink
finish writer outside
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Feb 27, 2025
1 parent 7d78010 commit 494bafc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stream/src/executor/sync_kv_log_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,11 @@ impl<S: StateStore> SyncedKvLogStoreExecutor<S> {
| LogStoreBufferItem::UpdateVnodes(_) => {}
}
}

let (flush_info, _) = writer.finish().await?;
flush_info.report(metrics);
}

// Apply truncation
let (flush_info, _) = writer.finish().await?;
flush_info.report(metrics);
let post_seal = write_state.seal_current_epoch(barrier.epoch.curr, truncation_offset);

// Add to buffer
Expand Down

0 comments on commit 494bafc

Please # to comment.