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

db, node, sentry, sync: more exception handlers #2648

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

canepat
Copy link
Member

@canepat canepat commented Jan 12, 2025

No description provided.

@canepat canepat added the maintenance Some maintenance work (fix, refactor, rename, test...) label Jan 13, 2025
@canepat canepat marked this pull request as ready for review January 13, 2025 07:39
@canepat canepat requested a review from battlmonstr January 13, 2025 07:39
Comment on lines 102 to 104
SILK_WARN_M("SnapshotSync") << "SnapshotSync::run ex=" << ex.what();
if (ex.code() == boost::system::errc::operation_canceled) {
SILK_WARN_M("SnapshotSync") << "SnapshotSync::run operation_canceled";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
SILK_WARN_M("SnapshotSync") << "SnapshotSync::run ex=" << ex.what();
if (ex.code() == boost::system::errc::operation_canceled) {
SILK_WARN_M("SnapshotSync") << "SnapshotSync::run operation_canceled";
SILK_ERROR_M("SnapshotSync") << "SnapshotSync::run ex=" << ex.what();
if (ex.code() == boost::system::errc::operation_canceled) {
SILK_DEBUG_M("SnapshotSync") << "SnapshotSync::run operation_canceled";

operation_canceled could be a normal expected graceful exit, and error is an unrecoverable error in this case

P.S. if we implement #1527 this extra code could be removed

Copy link
Member Author

@canepat canepat Jan 13, 2025

Choose a reason for hiding this comment

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

Yep, but I need to have this warning to try and debug the root cause for issue #2333. I will remove these warnings later.

Copy link
Contributor

Choose a reason for hiding this comment

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

@canepat can't you enable DEBUG level while debugging?

Copy link
Member Author

@canepat canepat Jan 13, 2025

Choose a reason for hiding this comment

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

@canepat can't you enable DEBUG level while debugging?

not in this case, because this is relevant during standalone sync and as you can see the exception handlers are in different modules (db, node, sentry, sync) so it would produce too many logs

Copy link
Member Author

Choose a reason for hiding this comment

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

I've accepted your suggestion for one log and added TODOs for the other one

Copy link
Contributor

Choose a reason for hiding this comment

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

I would either have this as a local patch or enable DEBUG and grep for "SnapshotSync::run operation_canceled" in the final log (where it exits). But if it makes your life easier, we can merge this temporarily until it is fixed.

@canepat canepat merged commit 5ceefd7 into master Jan 13, 2025
5 checks passed
@canepat canepat deleted the silkworm_more_exception_handlers branch January 13, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Some maintenance work (fix, refactor, rename, test...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants