You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example:
match self.open_grpc_stream(
request.get_redis_addr(),
"package.name",
"MetricStream",
vec![],
) {
Err(e) => {
error!("open grpc err {:?}",e);
false
}
Ok(status) => {
// grpc server is health
// sudden the grpc server is crash or other thing
self.send_grpc_stream_message(status, Some(&msg), true); // here will panic ,because grpc server is crash
true
}
}
The text was updated successfully, but these errors were encountered:
Could you post stacktrace? Does the plugin panic or does the host crash?
"Any connection drop would cause a crash due to the underlying error handling using unwrap. I have fixed this issue and resolved numerous crash problems. The fix can be reviewed and merged in the pull request at #264."
use grpc stream code potential risks panic
example:
match self.open_grpc_stream(
request.get_redis_addr(),
"package.name",
"MetricStream",
vec![],
) {
Err(e) => {
error!("open grpc err {:?}",e);
false
}
Ok(status) => {
// grpc server is health
// sudden the grpc server is crash or other thing
self.send_grpc_stream_message(status, Some(&msg), true); // here will panic ,because grpc server is crash
true
}
}
The text was updated successfully, but these errors were encountered: