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

Try to make kafka downloads more robust #12715

Merged
merged 3 commits into from
Jul 11, 2019

Conversation

jsoriano
Copy link
Member

Downloads of kafka when building the docker image for metricbeat tests
fail frequently, the error is reported by tar, saying that the
downloaded object is not a tar. This can happen if curl downloads a
result page as the result of a 3XX or 4XX response.
This change makes curl follow redirects, and fail on any status code >=
400. Retries with exponential backoff till 3 minutes are done now
when these errors happen.

If this doesn't reduce the number of failures next step would be to
retry with apache archive mirrors.

Downloads of kafka when building the docker image for metricbeat tests
fail frequently, the error is reported by tar, saying that the
downloaded object is not a tar. This can happen if curl downloads a
result page as the result of a 3XX or 4XX response.
This change makes curl follow redirects, and fail on any status code
>= 400. Retries with exponential backoff till 3 minutes are done now
when these errors happen.
@jsoriano jsoriano requested a review from a team as a code owner June 28, 2019 09:58
@jsoriano jsoriano self-assigned this Jun 28, 2019
@jsoriano
Copy link
Member Author

jenkins, test this again please

@jsoriano jsoriano added the flaky-test Unstable or unreliable test cases. label Jun 28, 2019
@jsoriano
Copy link
Member Author

jenkins, test this again please

@jsoriano
Copy link
Member Author

jsoriano commented Jul 1, 2019

Flaking error is #12743

@jsoriano
Copy link
Member Author

jsoriano commented Jul 1, 2019

jenkins, test this again

@jsoriano
Copy link
Member Author

I am cherry-picking #12743 before merging both because I don't know why the issue solved by the other PR happens so frequently here.

@jsoriano jsoriano force-pushed the metricbeat-kafka-download-retry branch from 1f2101f to f77bcc6 Compare July 10, 2019 16:43
@jsoriano
Copy link
Member Author

It passed, reverting to the approved change and updating with master.

@jsoriano jsoriano merged commit 6ed2884 into elastic:master Jul 11, 2019
@jsoriano jsoriano deleted the metricbeat-kafka-download-retry branch July 11, 2019 09:15
jsoriano added a commit to jsoriano/beats that referenced this pull request Aug 8, 2019
Add retries and better error handling as done for kafka in elastic#12715.
jsoriano added a commit that referenced this pull request Aug 9, 2019
Add retries and better error handling as done for kafka in #12715.
sorantis pushed a commit to sorantis/beats that referenced this pull request Aug 9, 2019
Add retries and better error handling as done for kafka in elastic#12715.
jsoriano added a commit to jsoriano/beats that referenced this pull request Feb 16, 2021
Add retries and better error handling as done for kafka in elastic#12715.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Metricbeat Metricbeat module review Team:Integrations Label for the Integrations team :Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants