Skip to content
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

gRPC catch-all filters should implement HttpExecutionStrategyInfluencer #1884

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

gRPC client and server unconditionally adds a "catch-all" filter, which
does not implement HttpExecutionStrategyInfluencer, leading to
unexpected offloading for users when they use aggregated and blocking
api.

Modifications:

  • Implement HttpExecutionStrategyInfluencer for both:
    CatchAllHttpServiceFilter and CatchAllHttpClientFilter;

Result:

No unexpected offloading when gRPC users use aggregated or blocking API.

Motivation:

gRPC client and server unconditionally adds a "catch-all" filter, which
does not implement `HttpExecutionStrategyInfluencer`, leading to
unexpected offloading for users when they use aggregated and blocking
api.

Modifications:

- Implement `HttpExecutionStrategyInfluencer` for both:
`CatchAllHttpServiceFilter` and `CatchAllHttpClientFilter`;

Result:

No unexpected offloading when gRPC users use aggregated or blocking API.
@idelpivnitskiy idelpivnitskiy merged commit 7de3bc5 into apple:main Oct 12, 2021
@idelpivnitskiy idelpivnitskiy deleted the catch-all-grpc branch October 12, 2021 22:02
@idelpivnitskiy
Copy link
Member Author

Will be cherry-picked after #1867 and #1861.

@chemicL
Copy link
Contributor

chemicL commented Oct 13, 2021

Will be cherry-picked after #1867 and #1861.

Both are now cherry-picked: f249032 and f8aaa8d

idelpivnitskiy added a commit that referenced this pull request Oct 13, 2021
…er (#1884)

Motivation:

gRPC client and server unconditionally adds a "catch-all" filter, which
does not implement `HttpExecutionStrategyInfluencer`, leading to
unexpected offloading for users when they use aggregated and blocking
api.

Modifications:

- Implement `HttpExecutionStrategyInfluencer` for both:
`CatchAllHttpServiceFilter` and `CatchAllHttpClientFilter`;

Result:

No unexpected offloading when gRPC users use aggregated or blocking API.
idelpivnitskiy added a commit that referenced this pull request Oct 13, 2021
Motivation:

#1884 used `appendNonOffloadingServiceFilter` that is available only in
the main branch.

Modifications:

- Replace `appendNonOffloadingServiceFilter` with `appendServiceFilter`;

Result:

No compile issues.
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