logger: use server stats scope at grpc logger#18067
logger: use server stats scope at grpc logger#18067yanavlasov merged 11 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
|
/assign-from @envoyproxy/first-pass-reviewers |
|
@envoyproxy/first-pass-reviewers assignee is @rojkov |
|
JFYI #18081 this is somewhat related to this:) |
rojkov
left a comment
There was a problem hiding this comment.
Thanks! Looks good. I've added one nit.
/cc @pradeepcrao might add comments.
|
Thank you @rojkov |
|
@mattklein123 @ggreenway Could you take a quick look so that we can decide the next step? My point is this PR fix the crash described in #18066 and another crash pattern combining the efforts in #18081 The wanted stats can be added in the follow up PRs |
rojkov
left a comment
There was a problem hiding this comment.
LGTM given the merge conflict is resolved.
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
|
/retest |
|
Retrying Azure Pipelines: |
|
gentle ping |
rojkov
left a comment
There was a problem hiding this comment.
Thanks! This feels less hacky indeed.
|
another main-merge is needed. |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Thanks! Fixing and running local CI. |
ack. Working on it |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
ggreenway
left a comment
There was a problem hiding this comment.
A few things to improve in the new integration test, then I think this is ready to merge.
| test_server_->waitForCounterGe("listener_manager.listener_create_failure", 1); | ||
| } | ||
|
|
||
| // Verify the grpc cached logger is available after the initial logger filter is destroyed. |
There was a problem hiding this comment.
Please elaborate on this and describe the stat scope lifetime issue this is testing for
|
/wait |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
|
/retest |
|
Retrying Azure Pipelines: |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
|
/retest |
|
Retrying Azure Pipelines: |
|
/retest |
|
Retrying Azure Pipelines: |
|
/retest |
|
Retrying Azure Pipelines: |
rojkov
left a comment
There was a problem hiding this comment.
LGTM
/assign @yanavlasov for final approval
Commit Message:
Fix the grpc access logger counter raised illegal memory access
by using server scope in shared loggers
Wider stats violation and detection can be found in #18047
Signed-off-by: Yuchen Dai silentdai@gmail.com
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
fix #18066
[Optional Deprecated:]
[Optional API Considerations:]