-
Notifications
You must be signed in to change notification settings - Fork 592
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
chain: make sure to WaitForShutdown
#964
Conversation
2091fa7
to
58426bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes, LGTM 🎉
wallet/chainntfns.go
Outdated
if addrmgrNs == nil { | ||
return fmt.Errorf("%w: empty waddrmgr bucket", ErrEmptyBucket) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm wondering how this can be nil if it is always created on DB construction via the create
function. It's also used in many other places without first doing a nil check. So if we can determine why it can be nil here, then those would also need to be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe the lnd itest panic reveals some info re the path taken here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question - should have kept the logs back then. This was seen in postgres, that somehow there's a goroutine accessing this data during shutdown, yet I guess the data was already GCed at the moment. Now that you mention it I think we should just let it happen and then decide what was the cause there, removed.
58426bc
to
321c0f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! 🤖
Simple fix - looks like we forgot to call
WaitForShutdown
and, add a nil bucket check which was found panic in one oflnd
's itests.