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

Conventionally use RejectedExecutionException for load issues #2511

Merged

Conversation

Logic-32
Copy link
Contributor

Updating Elasticsearch's HttpBulkIndexer to check for "too many requsts" error and throw more descriptive exception.

Copy link
Member

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

there might be a mockwebserver test for the span consumer. it could be helpful to use a real response and show that it works

@Logic-32
Copy link
Contributor Author

I found the ElasticsearchSpanConsumerTest and the MockWebServer it uses. However, I didn't notice any tests for span indexing to base things off of. So I wrote a more direct HttpBulkIndexerTest to validate this behavior. Does that work?

Copy link
Member

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

looks good to me.

@codefromthecrypt
Copy link
Member

we can merge on green. as this is a minor change I suspect it isnt blocking on iCLA such as the major refactoring change is..

@codefromthecrypt codefromthecrypt force-pushed the RejectedExecutionException branch from 60bf284 to b1e119c Compare April 24, 2019 03:45
@codefromthecrypt codefromthecrypt merged commit 689a27c into openzipkin:master Apr 24, 2019
@codefromthecrypt
Copy link
Member

thanks. let me know if you want a hand rebasing your other branch/PR

@Logic-32 Logic-32 deleted the RejectedExecutionException branch April 24, 2019 16:04
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