Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ protected DiscoveryNode createNode(DiscoveryNodeRole... mustHaveRoles) {
buildNewFakeTransportAddress(),
Collections.emptyMap(),
roles,
VersionUtils.randomIndexCompatibleVersion(random())
VersionUtils.randomCompatibleVersion(random(), Version.CURRENT)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
package org.elasticsearch.xpack.core.security.authc;

import org.elasticsearch.TransportVersion;
import org.elasticsearch.Version;
import org.elasticsearch.cluster.AbstractNamedDiffable;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.NamedDiff;
Expand Down Expand Up @@ -94,7 +93,7 @@ public String toString() {

@Override
public TransportVersion getMinimalSupportedVersion() {
return Version.CURRENT.minimumIndexCompatibilityVersion().transportVersion;
return TransportVersion.MINIMUM_COMPATIBLE;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void testToXContent() throws IOException {
final List<XPackFeatureSet.Usage> usageList = singletonList(new MonitoringFeatureSetUsage(false, null));

final NodeInfo mockNodeInfo = mock(NodeInfo.class);
Version mockNodeVersion = Version.CURRENT.minimumIndexCompatibilityVersion();
Version mockNodeVersion = Version.CURRENT.minimumCompatibilityVersion();
when(mockNodeInfo.getVersion()).thenReturn(mockNodeVersion);
when(mockNodeInfo.getNode()).thenReturn(discoveryNode);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testToXContent() throws IOException {
new TransportAddress(TransportAddress.META_ADDRESS, 9301),
singletonMap("attr", "value_1"),
singleton(DiscoveryNodeRole.DATA_ROLE),
Version.CURRENT.minimumIndexCompatibilityVersion()
Version.CURRENT.minimumCompatibilityVersion()
);

final ShardId shardId = new ShardId("_index_a", "_uuid_a", 0);
Expand Down