Skip to content

access_logger: correctly throw exception for grpc logger#17908

Merged
yanavlasov merged 10 commits intoenvoyproxy:mainfrom
mathetake:access-logger-exception
Sep 14, 2021
Merged

access_logger: correctly throw exception for grpc logger#17908
yanavlasov merged 10 commits intoenvoyproxy:mainfrom
mathetake:access-logger-exception

Conversation

@mathetake
Copy link
Copy Markdown
Member

@mathetake mathetake commented Aug 30, 2021

Signed-off-by: Takeshi Yoneda takeshi@tetrate.io

Commit Message: access_logger: correctly throw exception for gRPC logger
Additional Description: As described in #15458, the current implementation of gRPC access loggers potentially throws exception in the worker threads due to usage of AsyncClientManager::factoryForGrpcService in the ThreadLocal::SlotPtr::set. This commit fixes this by checking the gRPC clusters' health in the main thread before going into the tls setters.

Risk Level: low
Testing: unittest
[Optional Fixes #Issue] istio/istio#34901 #15458

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #17908 was opened by mathetake.

see: more, trace.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@yanavlasov yanavlasov self-assigned this Aug 31, 2021
@yanavlasov
Copy link
Copy Markdown
Contributor

/wait

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@mathetake mathetake force-pushed the access-logger-exception branch from 851204b to 1294f5e Compare September 1, 2021 04:04
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Copy link
Copy Markdown
Member

@Shikugawa Shikugawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nit comments 👍

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Copy link
Copy Markdown
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/wait

@yanavlasov yanavlasov merged commit 129a9f1 into envoyproxy:main Sep 14, 2021
@mathetake mathetake deleted the access-logger-exception branch September 14, 2021 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants