|
@@ -167,11 +167,11 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getTotal(), equalTo(2));
|
|
|
assertTrue("search cluster results should be marked as partial", clusters.hasPartialResults());
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
}
|
|
@@ -193,7 +193,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(0));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -203,7 +203,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getFailures().size(), equalTo(0));
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThan(0L));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -228,7 +228,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(0));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -238,7 +238,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getFailures().size(), equalTo(0));
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThan(0L));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -286,11 +286,11 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getTotal(), equalTo(2));
|
|
|
assertTrue("search cluster results should be marked as partial", clusters.hasPartialResults());
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
}
|
|
@@ -313,9 +313,9 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(0));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
@@ -357,9 +357,9 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(0));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
@@ -436,12 +436,12 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(2));
|
|
|
}
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.FAILED));
|
|
|
assertAllShardsFailed(minimizeRoundtrips, localClusterSearchInfo, localNumShards);
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|
|
@@ -467,12 +467,12 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(2));
|
|
|
}
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.FAILED));
|
|
|
assertAllShardsFailed(minimizeRoundtrips, localClusterSearchInfo, localNumShards);
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|
|
@@ -515,11 +515,11 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getTotal(), equalTo(2));
|
|
|
assertTrue("search cluster results should be marked as partial", clusters.hasPartialResults());
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
}
|
|
@@ -541,7 +541,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(2));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -553,7 +553,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
ShardSearchFailure localShardSearchFailure = localClusterSearchInfo.getFailures().get(0);
|
|
|
assertTrue("should have 'index corrupted' in reason", localShardSearchFailure.reason().contains("index corrupted"));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -578,7 +578,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(2));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -590,7 +590,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
ShardSearchFailure localShardSearchFailure = localClusterSearchInfo.getFailures().get(0);
|
|
|
assertTrue("should have 'index corrupted' in reason", localShardSearchFailure.reason().contains("index corrupted"));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -644,11 +644,11 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getTotal(), equalTo(2));
|
|
|
assertTrue("search cluster results should be marked as partial", clusters.hasPartialResults());
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.RUNNING));
|
|
|
}
|
|
@@ -675,7 +675,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(1));
|
|
|
}
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -685,7 +685,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getFailures().size(), equalTo(0));
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThan(0L));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|
|
@@ -727,7 +727,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(1));
|
|
|
}
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(localClusterSearchInfo.getTotalShards(), equalTo(localNumShards));
|
|
@@ -737,7 +737,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getFailures().size(), equalTo(0));
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThan(0L));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|
|
@@ -803,7 +803,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(2));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
// PARTIAL expected since timedOut=true
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
@@ -815,7 +815,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThanOrEqualTo(0L));
|
|
|
assertTrue(localClusterSearchInfo.isTimedOut());
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
// PARTIAL expected since timedOut=true
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
@@ -840,7 +840,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.PARTIAL), equalTo(2));
|
|
|
assertThat(clusters.getClusterStateCount(SearchResponse.Cluster.Status.FAILED), equalTo(0));
|
|
|
|
|
|
- SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY).get();
|
|
|
+ SearchResponse.Cluster localClusterSearchInfo = clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY);
|
|
|
assertNotNull(localClusterSearchInfo);
|
|
|
// PARTIAL expected since timedOut=true
|
|
|
assertThat(localClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
@@ -852,7 +852,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
assertThat(localClusterSearchInfo.getTook().millis(), greaterThanOrEqualTo(0L));
|
|
|
assertTrue(localClusterSearchInfo.isTimedOut());
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
// PARTIAL expected since timedOut=true
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
@@ -909,7 +909,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -936,7 +936,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.SUCCESSFUL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -991,7 +991,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -1018,7 +1018,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
assertThat(remoteClusterSearchInfo.getStatus(), equalTo(SearchResponse.Cluster.Status.PARTIAL));
|
|
|
assertThat(remoteClusterSearchInfo.getTotalShards(), equalTo(remoteNumShards));
|
|
@@ -1083,7 +1083,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|
|
@@ -1110,7 +1110,7 @@ public class CrossClusterAsyncSearchIT extends AbstractMultiClustersTestCase {
|
|
|
}
|
|
|
assertNull(clusters.getCluster(RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY));
|
|
|
|
|
|
- SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER).get();
|
|
|
+ SearchResponse.Cluster remoteClusterSearchInfo = clusters.getCluster(REMOTE_CLUSTER);
|
|
|
assertNotNull(remoteClusterSearchInfo);
|
|
|
SearchResponse.Cluster.Status expectedStatus = skipUnavailable
|
|
|
? SearchResponse.Cluster.Status.SKIPPED
|