fixed compile errors after cherry-picking

This commit is contained in:
Martijn van Groningen 2019-07-01 08:31:31 +02:00
parent 237f2bd60a
commit 8f3387e7cb
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
4 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ class SimulateExecutionService {
}
public void execute(SimulatePipelineRequest.Parsed request, ActionListener<SimulatePipelineResponse> listener) {
threadPool.executor(THREAD_POOL_NAME).execute(new ActionRunnable<>(listener) {
threadPool.executor(THREAD_POOL_NAME).execute(new ActionRunnable<SimulatePipelineResponse>(listener) {
@Override
protected void doRun() {
final AtomicInteger counter = new AtomicInteger();

View File

@ -102,7 +102,7 @@ public class BulkRequestModifierTests extends ESTestCase {
assertThat(bulkRequest.requests().size(), Matchers.equalTo(16));
List<BulkItemResponse> responses = new ArrayList<>();
ActionListener<BulkResponse> bulkResponseListener = modifier.wrapActionListenerIfNeeded(1L, new ActionListener<>() {
ActionListener<BulkResponse> bulkResponseListener = modifier.wrapActionListenerIfNeeded(1L, new ActionListener<BulkResponse>() {
@Override
public void onResponse(BulkResponse bulkItemResponses) {
responses.addAll(Arrays.asList(bulkItemResponses.getItems()));

View File

@ -74,7 +74,7 @@ public class SimulateExecutionServiceTests extends ESTestCase {
latch.countDown();
});
latch.await();
SimulateDocumentResult actualItemResponse = holder.getAcquire();
SimulateDocumentResult actualItemResponse = holder.get();
assertThat(processor.getInvokedCounter(), equalTo(2));
assertThat(actualItemResponse, instanceOf(SimulateDocumentVerboseResult.class));
SimulateDocumentVerboseResult simulateDocumentVerboseResult = (SimulateDocumentVerboseResult) actualItemResponse;
@ -106,7 +106,7 @@ public class SimulateExecutionServiceTests extends ESTestCase {
latch.countDown();
});
latch.await();
SimulateDocumentResult actualItemResponse = holder.getAcquire();
SimulateDocumentResult actualItemResponse = holder.get();
assertThat(processor.getInvokedCounter(), equalTo(2));
assertThat(actualItemResponse, instanceOf(SimulateDocumentBaseResult.class));
SimulateDocumentBaseResult simulateDocumentBaseResult = (SimulateDocumentBaseResult) actualItemResponse;

View File

@ -582,7 +582,7 @@ public class IngestServiceTests extends ESTestCase {
ingestService.executeBulkRequest(bulkRequest.numberOfActions(), bulkRequest.requests(), failureHandler,
completionHandler, indexReq -> {});
verify(failureHandler, times(1)).accept(
argThat(new CustomTypeSafeMatcher<>("failure handler was not called with the expected arguments") {
argThat(new CustomTypeSafeMatcher<Integer>("failure handler was not called with the expected arguments") {
@Override
protected boolean matchesSafely(Integer item) {
return item == 1;