Skip to content

Commit 41c7e8b

Browse files
authored
Mark the features_supported feature as assumed (#118849) (#119496)
Only do one here so we can verify the mechanisms
1 parent bb66741 commit 41c7e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/features/FeatureService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class FeatureService {
3232
/**
3333
* A feature indicating that node features are supported.
3434
*/
35-
public static final NodeFeature FEATURES_SUPPORTED = new NodeFeature("features_supported");
35+
public static final NodeFeature FEATURES_SUPPORTED = new NodeFeature("features_supported", true);
3636
public static final NodeFeature TEST_FEATURES_ENABLED = new NodeFeature("test_features_enabled");
3737

3838
private static final Logger logger = LogManager.getLogger(FeatureService.class);

server/src/main/java/org/elasticsearch/features/NodeFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @param id The feature id. Must be unique in the node.
1818
* @param assumedAfterNextCompatibilityBoundary
1919
* {@code true} if this feature is removed at the next compatibility boundary (ie next major version),
20-
* and so should be assumed to be true for all nodes after that boundary.
20+
* and so should be assumed to be met by all nodes after that boundary, even if they don't publish it.
2121
*/
2222
public record NodeFeature(String id, boolean assumedAfterNextCompatibilityBoundary) {
2323

0 commit comments

Comments
 (0)