Skip to content

Commit 1e9ec42

Browse files
committed
Use the right versions
1 parent b04449b commit 1e9ec42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public class InfrastructureFeatures implements FeatureSpecification {
3131
* PREVIOUS | 8 | 9 | 10
3232
*
3333
* v9 knows about REST API 9 and 8. v10 knows about REST API 10 and 9.
34-
* A v10 node can join a v9 cluster, as the ES_V_9 feature known by v9 is assumed.
34+
* A v10 node can join a v9 cluster, as the ES_V_8 feature known by v9 is assumed.
3535
* But the v9 nodes don't know about ES_V_10, so that feature isn't active
3636
* on the v10 nodes until the cluster is fully upgraded,
3737
* at which point the ES_V_8 feature also disappears from the cluster.
3838
*
3939
* One thing you must not do is check the PREVIOUS_VERSION feature existence on the cluster,
40-
* as the answer will be wrong (v9 nodes will assume that v19 nodes have the v8 feature) - hence why it is private.
40+
* as the answer will be wrong (v9 nodes will assume that v10 nodes have the v8 feature) - hence why it is private.
4141
* That feature only exists here so that upgrades work to remove the feature from the cluster.
4242
*/
4343
public static final NodeFeature CURRENT_VERSION = new NodeFeature("ES_" + RestApiVersion.current());

0 commit comments

Comments
 (0)