@@ -195,9 +195,9 @@ public void testExecuteIndexPipelineDoesNotExist() {
195195 ingestService .executeBulkRequest (
196196 1 ,
197197 Collections .singletonList (indexRequest ),
198+ indexReq -> {},
198199 failureHandler ,
199200 completionHandler ,
200- indexReq -> {},
201201 Names .WRITE
202202 );
203203
@@ -963,9 +963,9 @@ public String getType() {
963963 ingestService .executeBulkRequest (
964964 bulkRequest .numberOfActions (),
965965 bulkRequest .requests (),
966+ indexReq -> {},
966967 failureHandler ,
967968 completionHandler ,
968- indexReq -> {},
969969 Names .WRITE
970970 );
971971
@@ -1009,9 +1009,9 @@ public void testExecuteBulkPipelineDoesNotExist() {
10091009 ingestService .executeBulkRequest (
10101010 bulkRequest .numberOfActions (),
10111011 bulkRequest .requests (),
1012+ indexReq -> {},
10121013 failureHandler ,
10131014 completionHandler ,
1014- indexReq -> {},
10151015 Names .WRITE
10161016 );
10171017 verify (failureHandler , times (1 )).accept (
@@ -1045,9 +1045,9 @@ public void testExecuteSuccess() {
10451045 ingestService .executeBulkRequest (
10461046 1 ,
10471047 Collections .singletonList (indexRequest ),
1048+ indexReq -> {},
10481049 failureHandler ,
10491050 completionHandler ,
1050- indexReq -> {},
10511051 Names .WRITE
10521052 );
10531053 verify (failureHandler , never ()).accept (any (), any ());
@@ -1085,9 +1085,9 @@ public void testDynamicTemplates() throws Exception {
10851085 ingestService .executeBulkRequest (
10861086 1 ,
10871087 Collections .singletonList (indexRequest ),
1088+ indexReq -> {},
10881089 failureHandler ,
10891090 completionHandler ,
1090- indexReq -> {},
10911091 Names .WRITE
10921092 );
10931093 latch .await ();
@@ -1113,9 +1113,9 @@ public void testExecuteEmptyPipeline() throws Exception {
11131113 ingestService .executeBulkRequest (
11141114 1 ,
11151115 Collections .singletonList (indexRequest ),
1116+ indexReq -> {},
11161117 failureHandler ,
11171118 completionHandler ,
1118- indexReq -> {},
11191119 Names .WRITE
11201120 );
11211121 verify (failureHandler , never ()).accept (any (), any ());
@@ -1176,9 +1176,9 @@ public void testExecutePropagateAllMetadataUpdates() throws Exception {
11761176 ingestService .executeBulkRequest (
11771177 1 ,
11781178 Collections .singletonList (indexRequest ),
1179+ indexReq -> {},
11791180 failureHandler ,
11801181 completionHandler ,
1181- indexReq -> {},
11821182 Names .WRITE
11831183 );
11841184 verify (processor ).execute (any (), any ());
@@ -1220,9 +1220,9 @@ public void testExecuteFailure() throws Exception {
12201220 ingestService .executeBulkRequest (
12211221 1 ,
12221222 Collections .singletonList (indexRequest ),
1223+ indexReq -> {},
12231224 failureHandler ,
12241225 completionHandler ,
1225- indexReq -> {},
12261226 Names .WRITE
12271227 );
12281228 verify (processor ).execute (eqIndexTypeId (indexRequest .version (), indexRequest .versionType (), emptyMap ()), any ());
@@ -1278,9 +1278,9 @@ public void testExecuteSuccessWithOnFailure() throws Exception {
12781278 ingestService .executeBulkRequest (
12791279 1 ,
12801280 Collections .singletonList (indexRequest ),
1281+ indexReq -> {},
12811282 failureHandler ,
12821283 completionHandler ,
1283- indexReq -> {},
12841284 Names .WRITE
12851285 );
12861286 verify (failureHandler , never ()).accept (eq (0 ), any (IngestProcessorException .class ));
@@ -1330,9 +1330,9 @@ public void testExecuteFailureWithNestedOnFailure() throws Exception {
13301330 ingestService .executeBulkRequest (
13311331 1 ,
13321332 Collections .singletonList (indexRequest ),
1333+ indexReq -> {},
13331334 failureHandler ,
13341335 completionHandler ,
1335- indexReq -> {},
13361336 Names .WRITE
13371337 );
13381338 verify (processor ).execute (eqIndexTypeId (indexRequest .version (), indexRequest .versionType (), emptyMap ()), any ());
@@ -1393,9 +1393,9 @@ public void testBulkRequestExecutionWithFailures() throws Exception {
13931393 ingestService .executeBulkRequest (
13941394 numRequest ,
13951395 bulkRequest .requests (),
1396+ indexReq -> {},
13961397 requestItemErrorHandler ,
13971398 completionHandler ,
1398- indexReq -> {},
13991399 Names .WRITE
14001400 );
14011401
@@ -1447,9 +1447,9 @@ public void testBulkRequestExecution() throws Exception {
14471447 ingestService .executeBulkRequest (
14481448 numRequest ,
14491449 bulkRequest .requests (),
1450+ indexReq -> {},
14501451 requestItemErrorHandler ,
14511452 completionHandler ,
1452- indexReq -> {},
14531453 Names .WRITE
14541454 );
14551455
@@ -1517,9 +1517,9 @@ public void testStats() throws Exception {
15171517 ingestService .executeBulkRequest (
15181518 1 ,
15191519 Collections .singletonList (indexRequest ),
1520+ indexReq -> {},
15201521 failureHandler ,
15211522 completionHandler ,
1522- indexReq -> {},
15231523 Names .WRITE
15241524 );
15251525 final IngestStats afterFirstRequestStats = ingestService .stats ();
@@ -1541,9 +1541,9 @@ public void testStats() throws Exception {
15411541 ingestService .executeBulkRequest (
15421542 1 ,
15431543 Collections .singletonList (indexRequest ),
1544+ indexReq -> {},
15441545 failureHandler ,
15451546 completionHandler ,
1546- indexReq -> {},
15471547 Names .WRITE
15481548 );
15491549 final IngestStats afterSecondRequestStats = ingestService .stats ();
@@ -1570,9 +1570,9 @@ public void testStats() throws Exception {
15701570 ingestService .executeBulkRequest (
15711571 1 ,
15721572 Collections .singletonList (indexRequest ),
1573+ indexReq -> {},
15731574 failureHandler ,
15741575 completionHandler ,
1575- indexReq -> {},
15761576 Names .WRITE
15771577 );
15781578 final IngestStats afterThirdRequestStats = ingestService .stats ();
@@ -1600,9 +1600,9 @@ public void testStats() throws Exception {
16001600 ingestService .executeBulkRequest (
16011601 1 ,
16021602 Collections .singletonList (indexRequest ),
1603+ indexReq -> {},
16031604 failureHandler ,
16041605 completionHandler ,
1605- indexReq -> {},
16061606 Names .WRITE
16071607 );
16081608 final IngestStats afterForthRequestStats = ingestService .stats ();
@@ -1698,9 +1698,9 @@ public String getDescription() {
16981698 ingestService .executeBulkRequest (
16991699 bulkRequest .numberOfActions (),
17001700 bulkRequest .requests (),
1701+ dropHandler ,
17011702 failureHandler ,
17021703 completionHandler ,
1703- dropHandler ,
17041704 Names .WRITE
17051705 );
17061706 verify (failureHandler , never ()).accept (any (), any ());
@@ -1784,9 +1784,9 @@ public void testCBORParsing() throws Exception {
17841784 ingestService .executeBulkRequest (
17851785 1 ,
17861786 Collections .singletonList (indexRequest ),
1787+ indexReq -> {},
17871788 (integer , e ) -> {},
17881789 (thread , e ) -> {},
1789- indexReq -> {},
17901790 Names .WRITE
17911791 );
17921792 }
@@ -1817,7 +1817,7 @@ public void testPostIngest() {
18171817 bulkRequest .add (indexRequest1 );
18181818 bulkRequest .add (indexRequest2 );
18191819
1820- ingestService .executeBulkRequest (2 , bulkRequest .requests (), ( integer , e ) -> {}, (thread , e ) -> {}, indexReq -> {}, Names .WRITE );
1820+ ingestService .executeBulkRequest (2 , bulkRequest .requests (), indexReq -> {}, (integer , e ) -> {}, ( thread , e ) -> {}, Names .WRITE );
18211821
18221822 assertThat (indexRequest1 .getRawTimestamp (), equalTo (10 ));
18231823 assertThat (indexRequest2 .getRawTimestamp (), nullValue ());
0 commit comments