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

refactor: avoid grpc forwarding twice #991

Merged

Conversation

baojinri
Copy link
Contributor

Rationale

Close #984

Detailed Changes

Add a parameter to the headers of grpc to mark that it has been forwarded.

Test Plan

Existing tests

@baojinri baojinri marked this pull request as ready for review June 13, 2023 09:20
proxy/src/grpc/sql_query.rs Outdated Show resolved Hide resolved
@ShiKaiWi ShiKaiWi changed the title refactor: avoid grpc continuous forwarding refactor: avoid grpc forwarding twice Jun 15, 2023
@baojinri baojinri force-pushed the refactor-avoid-grpc-continuous-forwarding branch from 3cd9210 to 85d0a10 Compare June 15, 2023 06:48
proxy/src/forward.rs Outdated Show resolved Hide resolved
proxy/src/forward.rs Outdated Show resolved Hide resolved
proxy/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit 032c448 into apache:main Jun 16, 2023
6 checks passed
@baojinri baojinri deleted the refactor-avoid-grpc-continuous-forwarding branch June 19, 2023 02:05
dust1 pushed a commit to dust1/ceresdb that referenced this pull request Aug 9, 2023
## Rationale
Close apache#984 

## Detailed Changes
Add a parameter to the headers of grpc to mark that it has been
forwarded.

## Test Plan
Existing tests
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.

Prevent continuous forwarding between multiple nodes
2 participants