Skip to content

fix: Don't interleave send calls from different Go routines#19209

Merged
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:fix/dont_call_send_different_goroutines
Sep 19, 2024
Merged

fix: Don't interleave send calls from different Go routines#19209
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:fix/dont_call_send_different_goroutines

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Sep 19, 2024

Summary

It is not safe to call Send on the same stream from different goroutines, which is what's happening when using the S3 source, as it sends both write and migrate messages during the sync.

Fixes https://github.com/cloudquery/cloudquery-issues/issues/2436 (internal issue)

@erezrokah erezrokah force-pushed the fix/dont_call_send_different_goroutines branch from 92a1d51 to 23a24eb Compare September 19, 2024 13:19
@erezrokah erezrokah force-pushed the fix/dont_call_send_different_goroutines branch from 23a24eb to c065d8a Compare September 19, 2024 14:05
@erezrokah erezrokah marked this pull request as ready for review September 19, 2024 14:09
@erezrokah erezrokah requested review from a team and marianogappa and removed request for a team September 19, 2024 14:09
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Sep 19, 2024
@kodiakhq kodiakhq bot merged commit d6dc789 into cloudquery:main Sep 19, 2024
kodiakhq bot pushed a commit that referenced this pull request Sep 19, 2024
🤖 I have created a release *beep* *boop*
---


## [6.7.1](cli-v6.7.0...cli-v6.7.1) (2024-09-19)


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.22.3 ([#19171](#19171)) ([c690a76](c690a76))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.63.0 ([#19176](#19176)) ([00b2de0](00b2de0))
* Don't interleave send calls from difference Go routines ([#19209](#19209)) ([d6dc789](d6dc789))
* Fix lack of error on destination close. ([#19178](#19178)) ([c11ad21](c11ad21))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@erezrokah erezrokah changed the title fix: Don't interleave send calls from difference Go routines fix: Don't interleave send calls from different Go routines Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants