Skip to content

Conversation

@disq
Copy link
Member

@disq disq commented Aug 4, 2023

Fixes the hang issue with non-append mode when a dest is using UnimplementedDeleteStale.

Also makes it so that you don't need to call Close() on plugin deinit (but it could still be a good idea if Write was interrupted)

@disq disq requested a review from yevgenypats as a code owner August 4, 2023 12:29
@github-actions github-actions bot added fix and removed fix labels Aug 4, 2023
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 63.63% and project coverage change: +0.23% 🎉

Comparison is base (0c47570) 47.67% compared to head (ad8e431) 47.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1131      +/-   ##
==========================================
+ Coverage   47.67%   47.91%   +0.23%     
==========================================
  Files          85       85              
  Lines        7805     7808       +3     
==========================================
+ Hits         3721     3741      +20     
+ Misses       3746     3730      -16     
+ Partials      338      337       -1     
Files Changed Coverage Δ
writers/streamingbatchwriter/unimplemented.go 0.00% <0.00%> (ø)
...iters/streamingbatchwriter/streamingbatchwriter.go 75.60% <100.00%> (+8.00%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added fix and removed fix labels Aug 4, 2023
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

⏱️ Benchmark results

Comparing with 0c47570

  • Glob-8 ns/op: 104.4 ⬆️ 4.35% increase vs. 0c47570

@disq disq requested a review from candiduslynx August 4, 2023 12:54
Comment on lines +25 to +27
// nolint:revive
for range ch {
}
Copy link
Contributor

@bbernays bbernays Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bbernays bbernays linked an issue Aug 7, 2023 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added fix and removed fix labels Aug 7, 2023
@disq disq changed the title fix(writers): StreamingBatchWriter should close when Write is done fix(writers): StreamingBatchWriter hangs with non-append mode Aug 8, 2023
@github-actions github-actions bot added fix and removed fix labels Aug 8, 2023
@github-actions github-actions bot added fix and removed fix labels Aug 8, 2023
@disq disq added the automerge label Aug 8, 2023
@erezrokah erezrokah merged commit 806c85d into cloudquery:main Aug 8, 2023
@disq disq deleted the fix/streamingbatchwriter-handle-multiple-cases branch August 8, 2023 08:20
kodiakhq bot pushed a commit that referenced this pull request Aug 8, 2023
🤖 I have created a release *beep* *boop*
---


## [4.2.6](v4.2.5...v4.2.6) (2023-08-08)


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to f53878d ([#1132](#1132)) ([0c47570](0c47570))
* **writers:** StreamingBatchWriter hangs with non-append mode ([#1131](#1131)) ([806c85d](806c85d))

---
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: StreamingBatchWriter Hangs on DeleteStale

4 participants