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

Allow configuring graceful stop in testutil #10566

Merged
merged 2 commits into from
Sep 8, 2021

Conversation

s-matyukevich
Copy link
Contributor

Before this PR it wasn't possible to configure graceful consul shutdown in testutil. this code was always triggered.

Now the default behavior is exactly the same as it used to be, but the users are able to set SkipLeaveOnInt flag, which causes consul to actually do the graceful shutdown on receiving SIGINT, and StopTimeout flag, which allows configuring for how long we are going to wait before sending syscall.SIGABRT to consul

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 6, 2021

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – consul-ui-staging July 6, 2021 21:45 Inactive
@vercel vercel bot temporarily deployed to Preview – consul July 6, 2021 21:45 Inactive
@dhiaayachi
Copy link
Contributor

Thank you for adding this @s-matyukevich.

We require a change log for this type of change, please add one here and I will be able to merge this change.

@dhiaayachi dhiaayachi self-assigned this Jul 15, 2021
@dhiaayachi dhiaayachi added the waiting-reply Waiting on response from Original Poster or another individual in the thread label Aug 18, 2021
@vercel vercel bot temporarily deployed to Preview – consul September 8, 2021 14:45 Inactive
Copy link
Contributor

@dhiaayachi dhiaayachi left a comment

Choose a reason for hiding this comment

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

I added the missing changelog and will merge this on behalf of @s-matyukevich

s-matyukevich and others added 2 commits September 8, 2021 10:56
Signed-off-by: Sergey Matyukevich <s.matyukevich@gmail.com>
@vercel vercel bot temporarily deployed to Preview – consul September 8, 2021 14:56 Inactive
@dhiaayachi dhiaayachi merged commit 06f3cce into hashicorp:main Sep 8, 2021
@hc-github-team-consul-core
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/441551.

@github-actions github-actions bot removed the waiting-reply Waiting on response from Original Poster or another individual in the thread label Sep 8, 2021
@dhiaayachi
Copy link
Contributor

Thank you @s-matyukevich for adding this!!

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