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

Support graceful failover in CLI #3205

Merged
merged 6 commits into from
Apr 28, 2020
Merged

Support graceful failover in CLI #3205

merged 6 commits into from
Apr 28, 2020

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Apr 18, 2020

What changed?
Add update domain operation set graceful failover timeout via CLI

Why?
Graceful failover will trigger from CLI.

How did you test it?
Local test

Potential risks
No risk as it is a pending feature

@yux0 yux0 requested review from vancexu and a team April 18, 2020 20:45
Comment on lines 169 to 172
cli.StringFlag{
Name: FlagFailoverTimeoutWithAlias,
Usage: "[Optional] Domain failover timeout in seconds. Default value: 60s",
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably IntFlag as the description says the value is in seconds? and default value "60" instead of "60s"?

if c.String(FlagFailoverType) == gracefulFailoverType {
failoverTimeout = &defaultFailoverTimeout
if c.IsSet(FlagFailoverTimeout) {
timeout := int32(c.Int(FlagFailoverTimeout))
Copy link
Contributor

@yycptt yycptt Apr 19, 2020

Choose a reason for hiding this comment

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

Timeout is defined as a StringFlag in the other file.

@coveralls
Copy link

coveralls commented Apr 27, 2020

Coverage Status

Coverage decreased (-0.08%) to 68.75% when pulling 4c68413 on failover_cli into 4a6daab on master.

tools/cli/domainUtils.go Outdated Show resolved Hide resolved
@yux0 yux0 merged commit 99b5cb9 into master Apr 28, 2020
@yux0 yux0 deleted the failover_cli branch April 28, 2020 06:32
mkolodezny pushed a commit to mkolodezny/cadence that referenced this pull request May 1, 2020
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.

4 participants