@@ -656,7 +656,7 @@ public void testTriggerPartitionStateUpdate() throws Exception {
656
656
final CompletableFuture <ExecutionState > promise = new CompletableFuture <>();
657
657
when (partitionChecker .requestPartitionProducerState (eq (task .getJobID ()), eq (resultId ), eq (partitionId ))).thenReturn (promise );
658
658
659
- task .requestPartitionProducerState (resultId , partitionId ). thenAccept ( checkResult ->
659
+ task .requestPartitionProducerState (resultId , partitionId , checkResult ->
660
660
assertThat (remoteChannelStateChecker .isProducerReadyOrAbortConsumption (checkResult ), is (false ))
661
661
);
662
662
@@ -680,7 +680,7 @@ public void testTriggerPartitionStateUpdate() throws Exception {
680
680
final CompletableFuture <ExecutionState > promise = new CompletableFuture <>();
681
681
when (partitionChecker .requestPartitionProducerState (eq (task .getJobID ()), eq (resultId ), eq (partitionId ))).thenReturn (promise );
682
682
683
- task .requestPartitionProducerState (resultId , partitionId ). thenAccept ( checkResult ->
683
+ task .requestPartitionProducerState (resultId , partitionId , checkResult ->
684
684
assertThat (remoteChannelStateChecker .isProducerReadyOrAbortConsumption (checkResult ), is (false ))
685
685
);
686
686
@@ -711,7 +711,7 @@ public void testTriggerPartitionStateUpdate() throws Exception {
711
711
CompletableFuture <ExecutionState > promise = new CompletableFuture <>();
712
712
when (partitionChecker .requestPartitionProducerState (eq (task .getJobID ()), eq (resultId ), eq (partitionId ))).thenReturn (promise );
713
713
714
- task .requestPartitionProducerState (resultId , partitionId ). thenAccept ( checkResult -> {
714
+ task .requestPartitionProducerState (resultId , partitionId , checkResult -> {
715
715
if (remoteChannelStateChecker .isProducerReadyOrAbortConsumption (checkResult )) {
716
716
callCount .incrementAndGet ();
717
717
}
@@ -749,7 +749,7 @@ public void testTriggerPartitionStateUpdate() throws Exception {
749
749
CompletableFuture <ExecutionState > promise = new CompletableFuture <>();
750
750
when (partitionChecker .requestPartitionProducerState (eq (task .getJobID ()), eq (resultId ), eq (partitionId ))).thenReturn (promise );
751
751
752
- task .requestPartitionProducerState (resultId , partitionId ). thenAccept ( checkResult -> {
752
+ task .requestPartitionProducerState (resultId , partitionId , checkResult -> {
753
753
if (remoteChannelStateChecker .isProducerReadyOrAbortConsumption (checkResult )) {
754
754
callCount .incrementAndGet ();
755
755
}
0 commit comments