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

gossipd: don't fail on gossip deletion #6297

Merged

Conversation

endothermicdev
Copy link
Collaborator

Aids in debugging #6270, where there was an attempt to delete gossip which had overrun the end of the gossip store. This logs the gossip type of the deletion attempt and avoids an immediate crash. We don't know what type gossip message failed the deletion attempt, but a tombstone would be fine to skip over at least.

Changelog-None

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK a57a67b

Make sense to me, but I am still a little bit confused why the error is telling us No such file or directory

@rustyrussell
Copy link
Contributor

I suspect this is just the problem we saw, not the whole problem. So moving the assert() out of DEVELOPER may give us more crashes?

Just replace the assert with a status_broken() which prints the msg (tal_hex() will be the emtpy string if its NULL) and that other information....?

@rustyrussell rustyrussell added this to the v23.08 milestone Jun 1, 2023
Reported in ElementsProject#6270, there was an attempt to delete gossip overrunning
the end of the gossip_store. This logs the gossip type that was attempted to be deleted and avoids an immediate crash (tombstones would be fine to
skip over at least.)

Changelog-None
@endothermicdev
Copy link
Collaborator Author

Good point. I relaxed the assert to status_broken along with the relevant information. This whole endeavor may only save us in narrow cases, but at least we'll get a clue should it happen again.

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack 4e6681f

@rustyrussell rustyrussell merged commit 40a50c1 into ElementsProject:master Jun 2, 2023
@rustyrussell rustyrussell mentioned this pull request Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants