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

Fix the issue that download retry may timeout without retry #1137

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

lucklove
Copy link
Member

@lucklove lucklove commented Feb 16, 2021

The reason is that the Retry operation include the elapsed time of
the first attempt into the total elapsed time, if the network is slow
and the first attempt consume too much time, the Retry operation
will timeout (the default timeout value is 10s, which is too small for network downloading).

This PR just increase the timeout of network retry to one hour.

Fix #1015

The reason is that the `Retry` operation include the elapsed time of
the first attempt into the total elapsed time, if the network is slow
and the first attempt consume too much time, the `Retry` operation
will timeout.

Fix pingcap#1015
@ti-chi-bot ti-chi-bot requested a review from lonng February 16, 2021 16:13
@ti-chi-bot ti-chi-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 16, 2021
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • AstroProfundis

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Feb 18, 2021
@AstroProfundis
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 34abaec

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Feb 18, 2021
@codecov-io
Copy link

codecov-io commented Feb 18, 2021

Codecov Report

Merging #1137 (3590d9e) into master (6cf73b3) will decrease coverage by 9.54%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1137      +/-   ##
==========================================
- Coverage   56.56%   47.02%   -9.55%     
==========================================
  Files         285      251      -34     
  Lines       20258    17401    -2857     
==========================================
- Hits        11458     8182    -3276     
- Misses       7035     7906     +871     
+ Partials     1765     1313     -452     
Flag Coverage Δ
cluster 44.88% <0.00%> (-0.08%) ⬇️
dm 25.43% <0.00%> (-0.01%) ⬇️
integrate 47.02% <0.00%> (-3.96%) ⬇️
playground ?
tiup ?
unittest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/cliutil/tui.go 59.18% <0.00%> (ø)
pkg/repository/mirror.go 19.92% <ø> (-19.93%) ⬇️
pkg/repository/store/store.go 0.00% <0.00%> (-100.00%) ⬇️
components/dm/ansible/worker.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/repository/utils/hash.go 0.00% <0.00%> (-81.82%) ⬇️
pkg/meta/err.go 0.00% <0.00%> (-81.25%) ⬇️
pkg/telemetry/meta.go 0.00% <0.00%> (-80.00%) ⬇️
pkg/telemetry/scrub.go 6.66% <0.00%> (-80.00%) ⬇️
pkg/cluster/api/error.go 0.00% <0.00%> (-80.00%) ⬇️
pkg/utils/freeport.go 0.00% <0.00%> (-77.28%) ⬇️
... and 87 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39532ee...d7d2770. Read the comment docs.

@AstroProfundis
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

@lucklove: Your PR has out-of-dated, I have automatically updated it for you.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 8ecc546 into pingcap:master Feb 19, 2021
@lucklove lucklove deleted the fix-retry branch February 22, 2021 04:10
lucklove added a commit to lucklove/tiup that referenced this pull request Mar 4, 2021
…1137)

The reason is that the `Retry` operation include the elapsed time of
the first attempt into the total elapsed time, if the network is slow
and the first attempt consume too much time, the `Retry` operation
will timeout.

Fix pingcap#1015

Co-authored-by: Ti Chi Robot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tiup Failed to install the component
4 participants