File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/internalClusterTest/java/org/elasticsearch/index/engine Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments