Skip to content

Log ORCA UNIMPLEMENTED error to subchannel logger (1.59.x backport)#10631

Merged
YifeiZhuang merged 1 commit intogrpc:v1.59.xfrom
ejona86:backport-orca-subchannel-logging-1.59
Oct 26, 2023
Merged

Log ORCA UNIMPLEMENTED error to subchannel logger (1.59.x backport)#10631
YifeiZhuang merged 1 commit intogrpc:v1.59.xfrom
ejona86:backport-orca-subchannel-logging-1.59

Conversation

@ejona86
Copy link
Member

@ejona86 ejona86 commented Oct 26, 2023

We started using Orca, but not every service in our service mesh serves an Orca endpoint.
This means that our client side logs filled up with severe logging messages about the Orca service being UNIMPLEMENTED per subchannel.
This is because the error is the only one that is logged to a static Java logger instance, while the rest of the subchannel messages are logged to the SubchannelLogger.

In order to not fill up the logs of our services, we'd like to also log the UNIMPLEMENTED error to the SubchannelLogger.

Backport of #10625. CC @yannickepstein

Logging to the static instance would result in application logs filling
up if the Orca service is not available.
We'd like to have the logging on the subchannelLogger, so we make it
visible on demand.

Also succeed Orca logging test if log message present. Using
contains over containsExactly seems more reasonable.
@ejona86 ejona86 requested a review from YifeiZhuang October 26, 2023 14:48
@YifeiZhuang YifeiZhuang merged commit 4caf106 into grpc:v1.59.x Oct 26, 2023
@ejona86 ejona86 deleted the backport-orca-subchannel-logging-1.59 branch November 6, 2023 18:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants