Closed xuxiaofan1203 closed 1 month ago
blocking position: https://github.com/moby/libnetwork/blob/3797618f9a38372e8107d8c06f6ae199e1133ae8/networkdb/cluster.go#L257 The nDB.cancelCtx() is in the func clusterLeave(), when return err ,the cancelFunc can't get executed and the goroutine leak. https://github.com/moby/libnetwork/blob/3797618f9a38372e8107d8c06f6ae199e1133ae8/networkdb/cluster.go#L224-L243 You can reproduce the bug by making program execute the path and test it by goleak
Thanks for reporting! It seems to be a duplicate of https://github.com/moby/moby/issues/47859. Since this repo is defunct, and not actively watched by maintainers, let me close this ticket.
blocking position: https://github.com/moby/libnetwork/blob/3797618f9a38372e8107d8c06f6ae199e1133ae8/networkdb/cluster.go#L257 The nDB.cancelCtx() is in the func clusterLeave(), when return err ,the cancelFunc can't get executed and the goroutine leak. https://github.com/moby/libnetwork/blob/3797618f9a38372e8107d8c06f6ae199e1133ae8/networkdb/cluster.go#L224-L243 You can reproduce the bug by making program execute the path and test it by goleak