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 rejoin_after_leave behavior #15552

Merged
merged 5 commits into from
Jan 11, 2023
Merged

Conversation

anth0d
Copy link
Contributor

@anth0d anth0d commented Dec 14, 2022

This will effectively change the default behavior of Serf to not rejoin after leave, which (I believe...) is actually the documented behavior. But this could be perceived as a breaking change by some cluster operators who may be accustomed to server nodes ignoring leave events.

Alternative approaches which would not change the default behavior would be

  • use a bool pointer in this config field in order to be able to discern nil (not configured) from intentionally false, and default to true as exists today
  • introduce a new config field disable_rejoin_after_leave which would default to false and therefore continue to produce the current behavior

In any case, docs probably need to be updated here and if necessary, a behavior change be communicated out.

@vercel
Copy link

vercel bot commented Dec 14, 2022

@anth0d is attempting to deploy a commit to the HashiCorp Team on Vercel.

A member of the Team first needs to authorize it.

command/agent/agent.go Outdated Show resolved Hide resolved
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

Hi @anth0d this looks great! A few remaining items:

  • If you run make cl that'll create a changelog entry file (it should read something like "Fixed a bug where the rejoin_after_leave configuration was not respected).
  • This does seem like the sort of thing that could catch out users, so maybe we add a note to the version-specific upgrade guide for Nomad 1.4.4 as well. That'll be found in https://github.com/hashicorp/nomad/blob/main/website/content/docs/upgrade/upgrade-specific.mdx
  • For some reason GHA didn't run on this PR, so we haven't run most of the CI testing on it. I'll try to figure that out but if you have any suggestions I'm all ears 😁

command/agent/config.go Show resolved Hide resolved
command/agent/agent.go Outdated Show resolved Hide resolved
nomad/server.go Show resolved Hide resolved
@tgross
Copy link
Member

tgross commented Jan 4, 2023

@anth0d I think we've got the CI issue fixed. Would you mind rebasing on main to verify that?

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

One last docs item to fix and this will be good-to-go @anth0d!

website/content/docs/upgrade/upgrade-specific.mdx Outdated Show resolved Hide resolved
@anth0d
Copy link
Contributor Author

anth0d commented Jan 11, 2023

Thanks @tgross, could you authorize the new preview app deployment?

Co-authored-by: Tim Gross <tgross@hashicorp.com>
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

@tgross tgross merged commit abe0889 into hashicorp:main Jan 11, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

Successfully merging this pull request may close these issues.

2 participants