Skip to content

Commit 34a1d01

Browse files
authored
Add 8.19 transport version constant to keep branches aligned (elastic#122582)
1 parent 0cf22ae commit 34a1d01

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ static TransportVersion def(int id) {
174174
public static final TransportVersion TIMEOUT_GET_PARAM_FOR_RESOLVE_CLUSTER = def(8_838_0_00);
175175
public static final TransportVersion INFERENCE_REQUEST_ADAPTIVE_RATE_LIMITING = def(8_839_0_00);
176176
public static final TransportVersion ML_INFERENCE_IBM_WATSONX_RERANK_ADDED = def(8_840_0_00);
177-
public static final TransportVersion ELASTICSEARCH_9_0 = def(9_000_0_00);
177+
public static final TransportVersion INITIAL_ELASTICSEARCH_8_19 = def(8_841_0_00);
178+
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0 = def(9_000_0_00);
178179
public static final TransportVersion REMOVE_SNAPSHOT_FAILURES_90 = def(9_000_0_01);
179180
public static final TransportVersion TRANSPORT_STATS_HANDLING_TIME_REQUIRED_90 = def(9_000_0_02);
180181
public static final TransportVersion REMOVE_DESIRED_NODE_VERSION_90 = def(9_000_0_03);

server/src/test/java/org/elasticsearch/TransportVersionTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
public class TransportVersionTests extends ESTestCase {
2929

3030
/**
31-
* This test is specific for V9, to ensure that transport versions are backported correctly.
31+
* This test is specific for V9, to ensure that transport versions are backported correctly. Do not forward or backport it,
32+
* and do not adjust the TransportVersion to check (INITIAL_ELASTICSEARCH_9_0).
33+
* If the test fails, there is something wrong with your backport PR.
3234
*/
3335
public void testMaximumAllowedTransportVersion() {
34-
assertThat(TransportVersions.LATEST_DEFINED.isPatchFrom(TransportVersions.ELASTICSEARCH_9_0), is(true));
36+
assertThat(TransportVersions.LATEST_DEFINED.isPatchFrom(TransportVersions.INITIAL_ELASTICSEARCH_9_0), is(true));
3537
}
3638

3739
public void testVersionComparison() {

0 commit comments

Comments
 (0)