goroutine leak fixed by pfi79 · Pull Request #5214 · hyperledger/fabric

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@pfi79

Copy link

Contributor

@pfi79 pfi79 commented

May 4, 2025

Because grpc clients are not closed, there is a leak of goroutines.
This change fixes this

Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>

@pfi79 pfi79 requested a review from a team as a code owner

May 4, 2025 21:18
@@ -186,8 +189,7 @@ func (hr *BFTHeaderReceiver) Stop() error {

hr.logger.Infof("[%s][%s] Stopping", hr.chainID, hr.endpoint)
Copy link

Contributor

Choose a reason for hiding this comment

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

well at least we have a stop function :-)

pfi79 reacted with laugh emoji

@yacovm yacovm merged commit 34273fb into hyperledger:main

May 5, 2025

15 checks passed

@pfi79 pfi79 deleted the goroutines-leak branch

May 5, 2025 08:04

@pfi79

Copy link

Contributor Author

pfi79 commented

May 5, 2025

@yacovm @C0rWin @denyeart
Recently fixed 2 serious bugs: goroutine leak and deadlock in SmartBFT.
Please consider releasing a new version v3.1.1

@tock-ibm

Copy link

Contributor

tock-ibm commented

May 6, 2025

@pfi79 Thanks for picking that up! At least I left TODOs in the right places ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@yacovm yacovm yacovm approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@pfi79 @tock-ibm @yacovm