-
Notifications
You must be signed in to change notification settings - Fork 702
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
fix: Make datacatalog gRPC server MaxRecvMsgSize configurable #6313
base: master
Are you sure you want to change the base?
Conversation
Code Review Agent Run Status
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6313 +/- ##
==========================================
+ Coverage 58.48% 58.50% +0.01%
==========================================
Files 937 937
Lines 71088 71094 +6
==========================================
+ Hits 41576 41590 +14
+ Misses 26360 26352 -8
Partials 3152 3152
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4ec063f
to
d3e776d
Compare
@@ -52,6 +52,7 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { | |||
cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) | |||
cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "grpcPort"), defaultConfig.GrpcPort, "On which grpc port to serve Catalog") | |||
cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "grpcServerReflection"), defaultConfig.GrpcServerReflection, "Enable GRPC Server Reflection") | |||
cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "grpcMaxRecvMsgSizeMBs"), defaultConfig.GrpcMaxRecvMsgSizeMBs, "The max receive message size; if unset defaults to gRPC server default value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually modified this manually because make generate
didn't work for me.
Installing github.com/vektra/mockery/[email protected]
go: github.com/vektra/mockery/[email protected] (in github.com/vektra/mockery/[email protected]): go.mod:5: unknown directive: toolchain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something is not working well with goenv.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to use goenv shell
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposed a minor fix in #6314
Code Review Agent Run #8929e2Actionable Suggestions - 1
Review Details
|
Changelist by BitoThis pull request implements the following key changes.
|
), | ||
) | ||
)} | ||
if cfg.GrpcMaxRecvMsgSizeMBs != -1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition cfg.GrpcMaxRecvMsgSizeMBs != -1
might not handle the case where GrpcMaxRecvMsgSizeMBs
is 0, which could be interpreted as 'use default'. Consider checking if the value is greater than 0 instead.
Code suggestion
Check the AI-generated fix before applying
if cfg.GrpcMaxRecvMsgSizeMBs != -1 { | |
if cfg.GrpcMaxRecvMsgSizeMBs > 0 { |
Code Review Run #8929e2
Should Bito avoid suggestions like this for future reviews? (Manage Rules)
- Yes, avoid them
Signed-off-by: Hongxin Liang <[email protected]>
d3e776d
to
fd7b760
Compare
Code Review Agent Run #c55bebActionable Suggestions - 0Review Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also expose this in the flyte-core and flyte-binary charts?
Signed-off-by: Hongxin Liang <[email protected]>
I did some changes in the last commit. Please let me know if I did something wrong or missed some. I'm not familiar with these things. Thank you. |
Code Review Agent Run #752826Actionable Suggestions - 0Review Details
|
Tracking issue
Closes #6306
Why are the changes needed?
It is possible that a task might upload an artifact larger than 4MB that is default value of MaxRecvMsgSize of gRPC server, and when that happens propeller would get a failed call. It feels reasonable to leave the choice to users.
What changes were proposed in this pull request?
Make datacatalog gRPC server MaxRecvMsgSize configurable
How was this patch tested?
Partially unit tested
Labels
Please add one or more of the following labels to categorize your PR:
This is important to improve the readability of release notes.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
This PR adds a configurable parameter (grpcMaxRecvMsgSizeMBs: 6) for gRPC server's maximum receive message size to address large artifact upload issues. It updates YAML and Go configurations, revises gRPC server initialization, and adds command flag support. The change enables larger artifact uploads without failed gRPC calls, improving system reliability.Unit tests added: True
Estimated effort to review (1-5, lower is better): 1