Repository navigation
vtinsert,vtagent: return UNAVAILABLE on OTLP/gRPC overload and read-only storage - #332
Closed
aloneangel45 wants to merge 2 commits into
Closed
aloneangel45 wants to merge 2 commits into
aloneangel45 wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply to a comment to ask cubic a question or push back. It learns from your replies.
Click Fix with cubic on a comment, or reply @cubic-dev-ai fix this, and cubic writes the fix.
Re-trigger cubic
Author
|
Thanks for the review! Addressed both findings in the latest commit: saved and restored \maxConcurrentInserts\ and \insert.maxQueueDuration\ via \ .Cleanup\ and checked \lag.Set\ errors in both \�pp/vtinsert/opentelemetry/otlpgrpc_test.go\ and \�pp/vtagent/opentelemetry/otlpgrpc_test.go. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #306
Describe Your Changes
grpc.StatusCodeFromError(err error) stringinlib/grpc/grpc.go, mapping*httpserver.ErrorWithStatusCodeoverload / rate-limit / unavailability errors (429 Too Many Requests,503 Service Unavailable,502,504) togrpc.StatusCodeUnavailable("14"), while defaulting other errors togrpc.StatusCodeInternal("13").app/vtinsert/opentelemetry/otlpgrpc.goto usegrpc.StatusCodeFromError(err)forinsertutil.CanWriteData()(read-only storage returns HTTP429) andprotoparserutil.ReadUncompressedData(-maxConcurrentInsertsconcurrency exhaustion returns HTTP503).app/vtagent/opentelemetry/otlpgrpc.goto usegrpc.StatusCodeFromError(err)forprotoparserutil.ReadUncompressedDataconcurrency-limit errors.lib/grpc/grpc_test.go,app/vtinsert/opentelemetry/otlpgrpc_test.go, andapp/vtagent/opentelemetry/otlpgrpc_test.go.Verification
go vet ./lib/grpc/... ./app/vtinsert/opentelemetry/... ./app/vtagent/opentelemetry/... go test -v -count=1 ./lib/grpc/... ./app/vtinsert/... ./app/vtagent/...