Skip to content

Commit 6ea3794

Browse files
ClusterDisruptionIT.java
1 parent 284893b commit 6ea3794

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/internalClusterTest/java/org/elasticsearch/index/engine/MergeWithLowDiskSpaceIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void testShardCloseWhenDiskSpaceInsufficient() throws Exception {
103103
// and the merge executor says they're blocked due to insufficient disk space if (nodesStatsResponse.getNodes()
104104
NodesStatsResponse nodesStatsResponse = client().admin().cluster().prepareNodesStats().setThreadPool(true).get();
105105
if (nodesStatsResponse.getNodes()
106-
.getFirst()
106+
.get(0)
107107
.getThreadPool()
108108
.stats()
109109
.stream()
@@ -131,15 +131,15 @@ public void testShardCloseWhenDiskSpaceInsufficient() throws Exception {
131131
assertBusy(() -> {
132132
expectThrows(
133133
IndexNotFoundException.class,
134-
() -> indicesAdmin().prepareGetIndex(TEST_REQUEST_TIMEOUT).setIndices(indexName).get()
134+
() -> indicesAdmin().prepareGetIndex().setIndices(indexName).get()
135135
);
136136
});
137137
assertBusy(() -> {
138138
// merge thread pool should be done with the enqueue merge tasks
139139
NodesStatsResponse nodesStatsResponse = client().admin().cluster().prepareNodesStats().setThreadPool(true).get();
140140
assertThat(
141141
nodesStatsResponse.getNodes()
142-
.getFirst()
142+
.get(0)
143143
.getThreadPool()
144144
.stats()
145145
.stream()

0 commit comments

Comments
 (0)