You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logrus.Errorf("failed to send node leave: %v", err)
}
iferr:=mlist.Leave(time.Second); err!=nil {
returnerr
}
// cancel the context
nDB.cancelCtx()
for_, t:=rangenDB.tickers {
t.Stop()
}
returnmlist.Shutdown()
}
You can reproduce the bug by making program execute the path and test it by goleak
The text was updated successfully, but these errors were encountered:
xuxiaofan1203
changed the title
A potential goleak when return err
[Bug]:A potential goleak when return err
Apr 28, 2024
xuxiaofan1203
changed the title
[Bug]:A potential goleak when return err
[Bug]:A potential goleak when return err in libnetwork/networkdb/cluster.go
May 14, 2024
xuxiaofan1203
changed the title
[Bug]:A potential goleak when return err in libnetwork/networkdb/cluster.go
[Bug]:A potential goleak when return err
May 25, 2024
xuxiaofan1203
changed the title
[Bug]:A potential goleak when return err
[Bug]:A potential goleak
May 31, 2024
Thanks for reporting! It seems to be a duplicate of moby/moby#47859. Since this repo is defunct, and not actively watched by maintainers, let me close this ticket.
blocking position:
libnetwork/networkdb/cluster.go
Line 257 in 3797618
The nDB.cancelCtx() is in the func clusterLeave(), when return err ,the cancelFunc can't get executed and the goroutine leak.
libnetwork/networkdb/cluster.go
Lines 224 to 243 in 3797618
You can reproduce the bug by making program execute the path and test it by goleak
The text was updated successfully, but these errors were encountered: