-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove throw from ext_proc data plane when client start failed #39388
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
Conversation
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
|
/assign @stevenzzzz @tyxia |
tyxia
left a comment
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.
LGTM, modulo a nit
Thanks
| client_manager_.getOrCreateRawAsyncClientWithHashKey(config_with_hash_key, scope_, true); | ||
| THROW_IF_NOT_OK_REF(client_or_error.status()); | ||
| if (!client_or_error.status().ok()) { | ||
| return nullptr; |
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.
are there any logging/stats tracked this error case?
I feel it is good to have a logging line here?
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.
+1. Let's add a LOG_EVERY_N here.
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.
Done
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.
probably too spammy if there are a lot of request, let's do log_every_N_sec(10)
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.
This failure is very rare, and if it happens, we should just log it. BTW, there is no log_every_N_sec() in OSS.
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.
it will log too much when the config is in trouble, right now linear to QPS, I don't think that's worth that much.
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.
could you use the ENVOY_LOG_PERIODIC_MISC macro, weird naming.
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.
done
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
stevenzzzz
left a comment
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.
LGTM modular the logging nit.
| client_manager_.getOrCreateRawAsyncClientWithHashKey(config_with_hash_key, scope_, true); | ||
| THROW_IF_NOT_OK_REF(client_or_error.status()); | ||
| if (!client_or_error.status().ok()) { | ||
| return nullptr; |
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.
it will log too much when the config is in trouble, right now linear to QPS, I don't think that's worth that much.
| client_manager_.getOrCreateRawAsyncClientWithHashKey(config_with_hash_key, scope_, true); | ||
| THROW_IF_NOT_OK_REF(client_or_error.status()); | ||
| if (!client_or_error.status().ok()) { | ||
| return nullptr; |
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.
could you use the ENVOY_LOG_PERIODIC_MISC macro, weird naming.
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
|
@stevenzzzz Could you take another look? |
stevenzzzz
left a comment
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.
Look good.
|
kind ping |
…proxy#39388) Remove throw from ext_proc data plane when client start failed --------- Signed-off-by: Yanjun Xiang <yanjunxiang@google.com> Signed-off-by: Ting Pan <panting@google.com>
Remove throw from ext_proc data plane when client start failed