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

Wait for shutdown sequence before a new retry #1150

Merged
merged 2 commits into from
Nov 5, 2020
Merged

Wait for shutdown sequence before a new retry #1150

merged 2 commits into from
Nov 5, 2020

Conversation

pchico83
Copy link
Contributor

@pchico83 pchico83 commented Nov 4, 2020

Signed-off-by: Pablo Chico de Guzman pchico83@gmail.com

Proposed changes

  • Wait for shutdown sequence before a new retry
  • Reduce frequency of reconnecting messages

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@pchico83 pchico83 changed the title Wait fro shutdown sequence before a new retry Wait for shutdown sequence before a new retry Nov 4, 2020
@codecov
Copy link

codecov bot commented Nov 4, 2020

Codecov Report

Merging #1150 into master will decrease coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1150      +/-   ##
==========================================
- Coverage   34.00%   33.94%   -0.06%     
==========================================
  Files          65       65              
  Lines        5491     5500       +9     
==========================================
  Hits         1867     1867              
- Misses       3421     3430       +9     
  Partials      203      203              
Impacted Files Coverage Δ
cmd/up/up.go 3.84% <0.00%> (-0.07%) ⬇️

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 2221ce1...20e1a9d. Read the comment docs.

}
iter++
iter = iter % 10
if isTransientError {
Copy link
Member

Choose a reason for hiding this comment

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

can we also add the log.Yellow here? or maybe use the same animation pattern that we do for the up? I'd like to make it visible that we're trying to reconnect rather than being stuck.

@rlamana what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rberrelleza the message is shown every 10s

cmd/up/up.go Outdated
@@ -957,6 +965,8 @@ func (up *upContext) shutdown() {
}

log.Info("completed shutdown sequence")
up.Canceled <- true
Copy link
Member

Choose a reason for hiding this comment

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

can we rename this to up.ShutdownCompleted (or somethign like that), since this could happen on a regular shutdown as well, and not just when canceling?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@pchico83 pchico83 merged commit cf4fa50 into master Nov 5, 2020
@pchico83 pchico83 deleted the retry branch November 5, 2020 06:07
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.

None yet

2 participants