-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
adds metrics to turbine QUIC endpoint #33819
Conversation
Codecov Report
@@ Coverage Diff @@
## master #33819 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 809 807 -2
Lines 217643 217523 -120
=========================================
- Hits 178247 178119 -128
- Misses 39396 39404 +8 |
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.
Things look mostly good; just the one question about unhandled error cases
|
||
fn record_error(err: &Error, stats: &TurbineQuicStats) { | ||
match err { | ||
Error::CertificateError(_) => (), |
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.
I see we do nothing for several cases; do we just not really expect these to happen at all? Even if we don't break them all out individually, should we make a "other" case as a catch-all so do account for all possible errors?
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.
CertificateError
,TlsError
andIoError
can only happen during start-up and are passed up the callstack which causes panic: https://github.com/solana-labs/solana/blob/8e0acf481/core/src/validator.rs#L1175-L1189ChannelSendError
only happens during shutdown where downstream processes have winded down and the receiver end of the channel is dropped.SendDatagramError::Disabled
can never happen because that is a local config and we obviously are not disabling datagrams when starting the endpoint.
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.
Got it, thanks for the explanation
0c65440
to
8e05575
Compare
(cherry picked from commit 6470544)
…#33819) (solana-labs#33838) adds metrics to turbine QUIC endpoint (solana-labs#33819) (cherry picked from commit 6470544) Co-authored-by: behzad nouri <behzadnouri@gmail.com>
…#33819) (solana-labs#33838) adds metrics to turbine QUIC endpoint (solana-labs#33819) (cherry picked from commit 6470544) Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Problem
monitor turbine QUIC endpoint
Summary of Changes
added metrics.