-
Notifications
You must be signed in to change notification settings - Fork 124
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: set max decode size of proto message, add mvtx metrics #2283
Conversation
Signed-off-by: Yashash H L <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2283 +/- ##
==========================================
- Coverage 65.57% 65.55% -0.02%
==========================================
Files 346 346
Lines 42396 42476 +80
==========================================
+ Hits 27800 27845 +45
- Misses 13528 13559 +31
- Partials 1068 1072 +4 ☔ View full report in Codecov by Sentry. |
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.
let's also think whether (1000ms x 5) retry is enough
I think 5 is less, I have increased the retry count to 60 (1000ms * 60). |
@@ -90,7 +90,7 @@ pub(crate) fn prost_timestamp_from_utc(t: DateTime<Utc>) -> Option<Timestamp> { | |||
|
|||
pub(crate) async fn create_rpc_channel(socket_path: PathBuf) -> error::Result<Channel> { | |||
const RECONNECT_INTERVAL: u64 = 1000; | |||
const MAX_RECONNECT_ATTEMPTS: usize = 5; | |||
const MAX_RECONNECT_ATTEMPTS: usize = 60; |
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.
does this print for every retry? else users might think why it is hanging. please print a error!
for every retry?
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 added a warn!
between the retries, if the retries are exhausted we print error!
.
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
…#2283) Signed-off-by: Yashash H L <[email protected]>
No description provided.