Skip to content

Conversation

maaarcelino
Copy link
Contributor

The current logic for BatchWriter does not flush DeleteRecord messages when the writer is flushed. This PR adds that flushing.

I'm also wondering whether we should add a call to flushDeleteRecordTables in https://github.com/cloudquery/plugin-sdk/blob/main/writers/batchwriter/batchwriter.go#L307-L315. WDYT?

@maaarcelino maaarcelino requested review from a team and blesniewski May 19, 2025 09:06
@github-actions github-actions bot added the fix label May 19, 2025
@kodiakhq kodiakhq bot merged commit 791c865 into main May 19, 2025
11 checks passed
@kodiakhq kodiakhq bot deleted the fix/flush-delete-record branch May 19, 2025 09:57
kodiakhq bot pushed a commit that referenced this pull request May 19, 2025
🤖 I have created a release *beep* *boop* --- ## [4.80.2](v4.80.1...v4.80.2) (2025-05-19) ### Bug Fixes * Change logic for batch writing to write when batch size is reached, not exceeded ([#2153](#2153)) ([58c8a1e](58c8a1e)) * Flush DeleteRecord messages when batch writer is flushed ([#2154](#2154)) ([791c865](791c865)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants