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

Stop ignoring panics in the peer receiver and heartbeat tasks #3199

Closed
teor2345 opened this issue Dec 12, 2021 · 1 comment · Fixed by #3253
Closed

Stop ignoring panics in the peer receiver and heartbeat tasks #3199

teor2345 opened this issue Dec 12, 2021 · 1 comment · Fixed by #3253
Assignees
Labels
A-diagnostics Area: Diagnosing issues or monitoring performance A-network Area: Network protocol updates or fixes C-security Category: Security issues I-hang A Zebra component stops responding to requests I-panic Zebra panics with an internal error message

Comments

@teor2345
Copy link
Contributor

Motivation

Zebra currently ignores panics in the peer message receiver task, and in the peer heartbeat task.

This can cause security or usability issues, because it can hide bugs, and cause hangs.

Designs

Add the join handles for these tasks to the Client, and poll them for panics during Client::poll_ready

tokio::spawn(
server
.run(peer_rx)

let heartbeat_ts_collector = address_book_updater.clone();
tokio::spawn(

Related Work

This might be the cause of peer set or Zebra hangs.

@teor2345 teor2345 added S-needs-triage Status: A bug report needs triage P-Medium C-security Category: Security issues I-panic Zebra panics with an internal error message I-hang A Zebra component stops responding to requests A-network Area: Network protocol updates or fixes A-diagnostics Area: Diagnosing issues or monitoring performance labels Dec 12, 2021
@mpguerra
Copy link
Contributor

@mpguerra mpguerra linked a pull request Dec 17, 2021 that will close this issue
3 tasks
@mpguerra mpguerra removed the S-needs-triage Status: A bug report needs triage label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Diagnosing issues or monitoring performance A-network Area: Network protocol updates or fixes C-security Category: Security issues I-hang A Zebra component stops responding to requests I-panic Zebra panics with an internal error message
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants