-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
logger: use server stats scope at grpc logger #18067
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:) |
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.
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 |
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 given the merge conflict is resolved.
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.
/wait
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
/retest |
Retrying Azure Pipelines: |
gentle ping |
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.
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>
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.
A few things to improve in the new integration test, then I think this is ready to merge.
@@ -597,6 +597,59 @@ TEST_P(LdsIntegrationTest, NewListenerWithBadPostListenSocketOption) { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
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
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
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
/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:]