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

Elasticsearch: Inverted retry logic #1300

Closed
sergeantwolf opened this issue Oct 31, 2018 · 2 comments · Fixed by #1302
Closed

Elasticsearch: Inverted retry logic #1300

sergeantwolf opened this issue Oct 31, 2018 · 2 comments · Fixed by #1302

Comments

@sergeantwolf
Copy link
Contributor

Currently ElasticsearchFlowStage handleFailure method usage of shouldRetry return value is inverted:
RetryNever retries indefinitely
RetryAtFixedRate fails immediately for any maxRetries values > 0

this line should say

if (!settings.retryLogic.shouldRetry(retryCount, List(exception.toString))) {

@ennru
Copy link
Member

ennru commented Oct 31, 2018

Would you be able to prepare a PR for this?

@ennru ennru changed the title Inverted retry logic Elasticsearch: Inverted retry logic Oct 31, 2018
@sergeantwolf
Copy link
Contributor Author

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants