Skip to content

Commit 9c31574

Browse files
committed
revert code
1 parent 9f1f662 commit 9c31574

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/StressSearchServiceReaperIT.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
3535
.build();
3636
}
3737

38+
// see issue #5165 - this test fails each time without the fix in pull #5170
3839
public void testStressReaper() throws ExecutionException, InterruptedException {
3940
int num = randomIntBetween(100, 150);
4041
IndexRequestBuilder[] builders = new IndexRequestBuilder[num];
@@ -45,16 +46,7 @@ public void testStressReaper() throws ExecutionException, InterruptedException {
4546
indexRandom(true, builders);
4647
final int iterations = scaledRandomIntBetween(500, 1000);
4748
for (int i = 0; i < iterations; i++) {
48-
SearchResponse response = null;
49-
try {
50-
SearchRequestBuilder searchRequestBuilder = prepareSearch("test").setQuery(matchAllQuery()).setSize(num);
51-
response = searchRequestBuilder.get();
52-
assertHitCountAndNoFailures(searchRequestBuilder, num);
53-
} finally {
54-
if (response != null) {
55-
response.decRef();
56-
}
57-
}
49+
assertHitCountAndNoFailures(prepareSearch("test").setQuery(matchAllQuery()).setSize(num), num);
5850
}
5951
}
6052
}

0 commit comments

Comments
 (0)