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 zookeeper connection leak #192

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

shanth96
Copy link

@shanth96 shanth96 commented Oct 25, 2024

Description

Fixes https://github.com/Shopify/vitess-project/issues/696

This PR closes the connection to the topo server whenever we get disconnected from zookeeper. This is to fix the connection/memory leak as described in the issue. It also adds additional logging whenever the connection is closed

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

@shanth96 shanth96 force-pushed the zk-conn-fix branch 2 times, most recently from bd4695c to 7f400c8 Compare October 28, 2024 22:16
@shanth96 shanth96 changed the title Zk conn fix Fix zookeeper connection leak Oct 28, 2024
@shanth96 shanth96 force-pushed the zk-conn-fix branch 2 times, most recently from 319e559 to c534303 Compare October 28, 2024 22:24
go/vt/topo/zk2topo/zk_conn_test.go Show resolved Hide resolved
go/vt/topo/zk2topo/zk_conn_test.go Outdated Show resolved Hide resolved
Copy link

@brendar brendar left a comment

Choose a reason for hiding this comment

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

🎉

@shanth96 shanth96 changed the base branch from v18.0.5-shopify-6 to v18.0.5-shopify-6-candidate October 29, 2024 20:55
@shanth96 shanth96 merged commit fc128dc into v18.0.5-shopify-6-candidate Oct 29, 2024
204 checks passed
@shanth96 shanth96 mentioned this pull request Oct 29, 2024
5 tasks
shanth96 added a commit that referenced this pull request Nov 5, 2024
Fix zookeeper connection leak
@shanth96 shanth96 mentioned this pull request Nov 5, 2024
5 tasks
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.

3 participants