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

Define busy error type in processor #2314

Merged
merged 2 commits into from
Jun 29, 2020

Conversation

pavolloffay
Copy link
Member

Created from #2306 (comment)

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay pavolloffay requested a review from a team as a code owner June 26, 2020 14:08
@pavolloffay pavolloffay requested review from jpkrohling and yurishkuro and removed request for jpkrohling June 26, 2020 14:08
@@ -49,6 +51,9 @@ func (g *GRPCHandler) PostSpans(ctx context.Context, r *api_v2.PostSpansRequest)
SpanFormat: processor.ProtoSpanFormat,
})
if err != nil {
if err == processor.ErrBusy {
return nil, status.Errorf(codes.ResourceExhausted, err.Error())
Copy link
Member Author

Choose a reason for hiding this comment

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

@yurishkuro it wasn't clear to me what error should we use here https://grpc.io/docs/guides/error/

Copy link
Member

Choose a reason for hiding this comment

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

I think GRPC_STATUS_RESOURCE_EXHAUSTED

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

thanks!

@pavolloffay pavolloffay merged commit 9df3149 into jaegertracing:master Jun 29, 2020
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.

2 participants