File tree 2 files changed +4
-5
lines changed
flink-runtime/src/test/java/org/apache/flink/runtime/resourcemanager/slotmanager
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 56
56
57
57
import org .apache .flink .shaded .guava18 .com .google .common .collect .Iterators ;
58
58
59
- import akka .pattern .AskTimeoutException ;
60
59
import org .junit .Test ;
61
60
62
61
import java .util .ArrayList ;
@@ -602,7 +601,7 @@ public void testSlotAllocationTimeout() throws Exception {
602
601
final BlockingQueue <Supplier <CompletableFuture <Acknowledge >>> responseQueue =
603
602
new ArrayBlockingQueue <>(2 );
604
603
responseQueue .add (
605
- () -> FutureUtils .completedExceptionally (new AskTimeoutException ("timeout" )));
604
+ () -> FutureUtils .completedExceptionally (new TimeoutException ("timeout" )));
606
605
responseQueue .add (
607
606
() -> {
608
607
secondSlotRequestFuture .complete (null );
Original file line number Diff line number Diff line change 36
36
import org .apache .flink .util .TestLogger ;
37
37
import org .apache .flink .util .concurrent .FutureUtils ;
38
38
39
- import akka .pattern .AskTimeoutException ;
40
39
import org .junit .Test ;
41
40
42
41
import java .util .Arrays ;
43
42
import java .util .concurrent .CompletableFuture ;
43
+ import java .util .concurrent .TimeoutException ;
44
44
45
45
import static org .hamcrest .Matchers .contains ;
46
46
import static org .hamcrest .Matchers .empty ;
@@ -126,7 +126,7 @@ public void testAllocateSlotFailsWithException() {
126
126
.setRequestSlotFunction (
127
127
ignored ->
128
128
FutureUtils .completedExceptionally (
129
- new AskTimeoutException ("timeout" )))
129
+ new TimeoutException ("timeout" )))
130
130
.createTestingTaskExecutorGateway ();
131
131
final TaskExecutorConnection taskExecutorConnection =
132
132
new TaskExecutorConnection (ResourceID .generate (), taskExecutorGateway );
@@ -151,7 +151,7 @@ public void testAllocateSlotFailsWithException() {
151
151
try {
152
152
allocatedFuture .get ();
153
153
} catch (Exception e ) {
154
- assertThat (e .getCause (), instanceOf (AskTimeoutException .class ));
154
+ assertThat (e .getCause (), instanceOf (TimeoutException .class ));
155
155
}
156
156
assertThat (resourceTracker .getAcquiredResources (jobId ), is (empty ()));
157
157
assertThat (
You can’t perform that action at this time.
0 commit comments