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

Use grpc metadata limit from Admin #2359

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Use grpc metadata limit from Admin #2359

merged 2 commits into from
Apr 19, 2024

Conversation

wild-endeavor
Copy link
Contributor

@wild-endeavor wild-endeavor commented Apr 17, 2024

Tracking issue

flyteorg/flyte#5224

Why are the changes needed?

Admin already gates large error messages, but flytekit does not set the max metadata size. The default is 16KB, so now we're bumping it up to roughly 32KB, in line with the cutoff from Admin.

What changes were proposed in this pull request?

Add a grpc dial option to the channel to configure max metadata size.

How was this patch tested?

This was tested by artificially creating a fake large error message in Admin (larger than 32KB in size) and confirming that it was received correctly by flytectl but not by flytekit. Adding this option lets flytekit receive the error correctly.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Yee Hing Tong <[email protected]>
@wild-endeavor wild-endeavor changed the title add option example - set grpc metadata option Apr 17, 2024
Signed-off-by: Yee Hing Tong <[email protected]>
@wild-endeavor wild-endeavor changed the title example - set grpc metadata option Use grpc metadata limit from Admin Apr 19, 2024
@wild-endeavor wild-endeavor marked this pull request as ready for review April 19, 2024 17:51
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 19, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by maintainer label Apr 19, 2024
@wild-endeavor wild-endeavor merged commit f116831 into master Apr 19, 2024
48 checks passed
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
Admin already gates large error messages, but flytekit does not set the max metadata size. The default is 16KB, so now we're bumping it up to roughly 32KB, in line with the cutoff from Admin.

Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Jan Fiedler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants