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

go/libraries/doltcore/dbfactory, misc: Ensure we close a *grpc.ClientConn when we are done with it. #7707

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Apr 7, 2024

In the cluster commithook, we had a failure mode where we would leak a *grpc.ClientConn without closing it. It turns out, if an outbound request has made on a ClientConn, it will continue retrying the connection. And we would leak one on a fixed interval, resulting in ever-increasing CPU utilization.

…Conn when we are done with it.

In the cluster commithook, we had a failure mode where we would leak a
*grpc.ClientConn without closing it. It turns out, if an outbound request has
made on a ClientConn, it will continue retrying the connection. And we would
leak one on a fixed interval, resulting in ever-increasing CPU utilization.
@coffeegoddd
Copy link
Contributor

@reltuk DOLT

comparing_percentages
100.000000 to 100.000000
version result total
c487288 ok 5937457
version total_tests
c487288 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@reltuk DOLT

comparing_percentages
100.000000 to 100.000000
version result total
ec67938 ok 5937457
version total_tests
ec67938 5937457
correctness_percentage
100.0

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good! 🚢

@reltuk reltuk merged commit 0db7250 into main Apr 8, 2024
20 checks passed
@reltuk reltuk deleted the aaron/grpc-close-clientconn branch July 17, 2024 19:14
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