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

fix(panic): Stop panicking on shutdown in the syncer and network init #7104

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

teor2345
Copy link
Contributor

Motivation

I saw another panic on shutdown in the syncer while preparing for the Zebra showcase.

Complex Code or Requirements

This is the same kind of bug as the last one: a panic on JoinError::Cancelled, which should just be a log.

Solution

Log shutdown errors rather than panicking in the syncer and when initialising zebra-network.

Review

This should be fixed soon, but it's not a release blocker.

Reviewer Checklist

  • Will the PR name make sense to users?
    • Does it need extra CHANGELOG info? (new features, breaking changes, large changes)
  • Are the PR labels correct?
  • Does the code do what the ticket and PR says?
    • Does it change concurrent code, unsafe code, or consensus rules?
  • How do you know it works? Does it have tests?

@teor2345 teor2345 added C-bug Category: This is a bug P-Medium ⚡ I-panic Zebra panics with an internal error message A-network Area: Network protocol updates or fixes A-concurrency Area: Async code, needs extra work to make it work properly. labels Jun 29, 2023
@teor2345 teor2345 requested a review from a team as a code owner June 29, 2023 06:58
@teor2345 teor2345 self-assigned this Jun 29, 2023
@teor2345 teor2345 requested review from oxarbitrage and removed request for a team June 29, 2023 06:58
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #7104 (29637b3) into main (a6731d1) will decrease coverage by 0.11%.
The diff coverage is 6.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7104      +/-   ##
==========================================
- Coverage   77.41%   77.30%   -0.11%     
==========================================
  Files         310      310              
  Lines       41795    41827      +32     
==========================================
- Hits        32354    32335      -19     
- Misses       9441     9492      +51     

@teor2345 teor2345 mentioned this pull request Jun 30, 2023
44 tasks
Copy link
Contributor

@arya2 arya2 left a comment

Choose a reason for hiding this comment

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

Looks good.

mergify bot added a commit that referenced this pull request Jul 2, 2023
@mergify mergify bot merged commit e6c3b87 into main Jul 2, 2023
@mergify mergify bot deleted the fix-sync-panic branch July 2, 2023 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-concurrency Area: Async code, needs extra work to make it work properly. A-network Area: Network protocol updates or fixes C-bug Category: This is a bug I-panic Zebra panics with an internal error message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants