Remove redudant children of BroadcastResponse (#104410)

A couple of children of `BroadCastResponse` are completely redundant,
adding no extra fields or separate serialization.
Removed them and replaced their use by the broadcast response itself.
This commit is contained in:
Armin Braun 2024-01-16 16:56:29 +01:00 committed by GitHub
parent af50962ec3
commit 51caf171bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
96 changed files with 293 additions and 655 deletions

View file

@ -17,8 +17,8 @@ import org.apache.http.nio.entity.NByteArrayEntity;
import org.apache.lucene.search.join.ScoreMode;
import org.apache.lucene.tests.util.TimeUnits;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.support.broadcast.BroadcastResponse;
import org.elasticsearch.aggregations.pipeline.DerivativePipelineAggregationBuilder;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.Response;
@ -199,7 +199,7 @@ public class CCSDuelIT extends ESRestTestCase {
assertTrue(latch.await(30, TimeUnit.SECONDS));
RefreshResponse refreshResponse = refresh(INDEX_NAME);
BroadcastResponse refreshResponse = refresh(INDEX_NAME);
ElasticsearchAssertions.assertNoFailures(refreshResponse);
}