Skip to content

Commit

Permalink
fix transport handshake failure
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <[email protected]>
  • Loading branch information
nknize committed Jul 2, 2021
1 parent bb41c35 commit e235dbe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,8 @@ public void testHandshakeUpdatesVersion() throws IOException {
TransportRequestOptions.Type.REG,
TransportRequestOptions.Type.STATE);
try (Transport.Connection connection = serviceA.openConnection(node, builder.build())) {
assertEquals(connection.getVersion(), version);
// OpenSearch 1.0+ in bwc mode should only "upgrade" to Legacy v7.10.2
assertEquals(connection.getVersion(), version.onOrAfter(Version.V_1_0_0) ? LegacyESVersion.V_7_10_2 : version);
}
}
}
Expand Down

0 comments on commit e235dbe

Please sign in to comment.