Skip to content

Commit c6368b9

Browse files
Remove outdated assertion from #118214 (#121435) (#121485)
Asserting that we definitely saw the "received a single result" flag and can now deal with null responses, isn't applicable after a few recent fixes. New requests are sent out before responses are fully processed to keep data nodes in a tighter loop (as well as other relaxed ordering relative to when this assertion was added) so the flag is not guaranteed to show up as true for lower numbers of shard requests any longer. Lets just remove it, it was always best effort and accidental that this worked for the numbers the test randomizes over. Co-authored-by: Dimitris Rempapis <[email protected]>
1 parent 70b4cee commit c6368b9

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

muted-tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ tests:
134134
- class: org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT
135135
method: test {p0=data_stream/120_data_streams_stats/Multiple data stream}
136136
issue: https://github.com/elastic/elasticsearch/issues/118217
137-
- class: org.elasticsearch.action.search.SearchQueryThenFetchAsyncActionTests
138-
method: testBottomFieldSort
139-
issue: https://github.com/elastic/elasticsearch/issues/118214
140137
- class: org.elasticsearch.xpack.searchablesnapshots.RetrySearchIntegTests
141138
method: testSearcherId
142139
issue: https://github.com/elastic/elasticsearch/issues/118374

server/src/test/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncActionTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ protected void run() {
220220
assertFalse(canReturnNullResponse.get());
221221
assertThat(numWithTopDocs.get(), equalTo(0));
222222
} else {
223-
assertTrue(canReturnNullResponse.get());
224223
if (withCollapse) {
225224
assertThat(numWithTopDocs.get(), equalTo(0));
226225
} else {

0 commit comments

Comments
 (0)