Skip to content

fix(pool): goroutine leak in backgroundHealthCheck#1049

Merged
SpencerTorres merged 1 commit intoClickHouse:mainfrom
zhengkezhou1:goleak-chpool
Mar 4, 2025
Merged

fix(pool): goroutine leak in backgroundHealthCheck#1049
SpencerTorres merged 1 commit intoClickHouse:mainfrom
zhengkezhou1:goleak-chpool

Conversation

@zhengkezhou1
Copy link
Copy Markdown
Contributor

Summary

The Pool should release the backgroundHealthCheck goroutine when chpool.Close is called.
Fix #1048

Checklist

Delete items not relevant to your PR:

@zhengkezhou1 zhengkezhou1 changed the title Fix Goroutine Leak in backgroundHealthCheck fix(pool): Ensure backgroundHealthCheck goroutine exits on close Mar 4, 2025
@zhengkezhou1 zhengkezhou1 changed the title fix(pool): Ensure backgroundHealthCheck goroutine exits on close fix(pool): goroutine leak in backgroundHealthCheck Mar 4, 2025
Copy link
Copy Markdown
Member

@SpencerTorres SpencerTorres left a comment

Choose a reason for hiding this comment

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

Thanks for finding this and submitting a fix 🚀

@SpencerTorres SpencerTorres merged commit 96be73c into ClickHouse:main Mar 4, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Goroutine Leak in backgroundHealthCheck by Ensuring Proper Shutdown

2 participants