Skip to content

Conversation

@jasontedor
Copy link
Member

@jasontedor jasontedor commented Apr 1, 2021

This commit removes the previously deprecated legacy role settings. These settings have been replaced by node.roles.

Relates #54998
Relates #71143
Closes #66409

This commit removes the previously deprecated legacy role
settings. These settings have been replaced by node.roles.
@jasontedor jasontedor added >breaking :Core/Infra/Core Core issues without another label v8.0.0 labels Apr 1, 2021
@jasontedor jasontedor requested a review from rjernst April 1, 2021 00:47
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Apr 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM. Just a couple minor suggestions

* `node.voting_only`
have been removed. Instead, use the `node.roles` setting. If you were previously
using the legacy role settings on 7.13 or later cluster, you will have a
Copy link
Member

Choose a reason for hiding this comment

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

nit: on a 7.13 or later cluster

Copy link
Member Author

Choose a reason for hiding this comment

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

I pushed 2362e7c.

have been removed. Instead, use the `node.roles` setting. If you were previously
using the legacy role settings on 7.13 or later cluster, you will have a
deprecation log message on each of your node informing you of the exact
Copy link
Member

Choose a reason for hiding this comment

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

Maybe reword the last part of this:

on each of your nodes indicating the exact replacement value for node.roles.

Copy link
Member Author

Choose a reason for hiding this comment

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

I pushed 2362e7c.

* Represents a node role.
*/
public abstract class DiscoveryNodeRole implements Comparable<DiscoveryNodeRole> {
public class DiscoveryNodeRole implements Comparable<DiscoveryNodeRole> {
Copy link
Member

Choose a reason for hiding this comment

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

This could be a followup, but I wonder if we could make this final now. Seems like the only need for override is the enabled by default predicate, but this could be a lambda passed to the second constructor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I will take a close look at opportunities for things like this when I get around to removing the plugin extension point for node roles.

@jasontedor jasontedor merged commit a5a5278 into elastic:master Apr 1, 2021
@jasontedor jasontedor deleted the remove-legacy-role-settings branch April 1, 2021 23:32
jrodewig added a commit that referenced this pull request Sep 15, 2021
We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77766)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77768)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77767)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77771)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77770)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77769)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
elasticsearchmachine pushed a commit that referenced this pull request Sep 15, 2021
…77772)

We deprecated several legacy node role settings in 7.9 with PR #54998. However,
we didn't add a related item to the 7.9 breaking changes docs. This adds the
missing item.

Relates to #71163.
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 11, 2022
The legacy node.ROLENAME settings were removed in 8.0 (elastic#71163), but
machine dependent heap still handles them. This commit cleans up the
heap settings determination to no longer look for these legacy settings.

relates elastic#85758
rjernst added a commit that referenced this pull request Apr 11, 2022
The legacy node.ROLENAME settings were removed in 8.0 (#71163), but
machine dependent heap still handles them. This commit cleans up the
heap settings determination to no longer look for these legacy settings.

relates #85758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the legacy node role settings

4 participants