Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kds): call CloseSend and exit a goroutine when sync fails to start #7869

Merged
merged 4 commits into from
Sep 26, 2023

Conversation

lukidzi
Copy link
Contributor

@lukidzi lukidzi commented Sep 26, 2023

Checklist prior to review

While running locally I've noticed that when Zone cannot connect to the Global we were incorrectly handling errors. Stop channel reacts only on signal and it was hanging on this line until zone was terminated. That cause that method CloseSend wasn't called and coroutine was hanging causing leak of goroutines. It shouldn't leak the connection though.

  • Link to relevant issue as well as docs and UI issues --
  • This will not break child repos: it doesn't hardcode values (.e.g "kumahq" as a image registry) and it will work on Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS --
  • Tests (Unit test, E2E tests, manual test on universal and k8s) --
  • Do you need to update UPGRADE.md? --
  • Does it need to be backported according to the backporting policy? (this GH action will add "backport" label based on these file globs, if you want to prevent it from adding the "backport" label use no-backport-autolabel label) --
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
@lukidzi lukidzi marked this pull request as ready for review September 26, 2023 11:43
@lukidzi lukidzi requested a review from a team as a code owner September 26, 2023 11:43
@lukidzi lukidzi requested review from jakubdyszkiewicz and lobkovilya and removed request for a team September 26, 2023 11:43
@lukidzi lukidzi merged commit 6e83b4a into kumahq:master Sep 26, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

backporting to release-2.3 with action

backporting to release-2.0 with action
backporting to release-2.1 with action
backporting to release-2.4 with action
backporting to release-2.2 with action

kumahq bot pushed a commit that referenced this pull request Sep 26, 2023
kumahq bot pushed a commit that referenced this pull request Sep 26, 2023
kumahq bot pushed a commit that referenced this pull request Sep 26, 2023
kumahq bot pushed a commit that referenced this pull request Sep 26, 2023
kumahq bot pushed a commit that referenced this pull request Sep 26, 2023
lukidzi added a commit that referenced this pull request Sep 26, 2023
…t (backport of #7869) (#7883)

fix(kds): call CloseSend and exit a goroutine when sync fails to start (#7869)

Signed-off-by: Lukasz Dziedziak <[email protected]>
Co-authored-by: Lukasz Dziedziak <[email protected]>
Co-authored-by: Jakub Dyszkiewicz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants