Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ class TaskExecutorPartitionLifecycleTest {

private Duration duration = Duration.ofSeconds(15);

private Duration longDuration = Duration.ofSeconds(30);
private static final Duration registrationTimeout = Duration.ofSeconds(1);

private static final Duration assertNotCompleteDuration = Duration.ofMillis(50);

private static final Duration longDuration = Duration.ofSeconds(3);

private CompletableFuture<Void> disconnectTaskManagerFuture;

Expand Down Expand Up @@ -352,7 +356,7 @@ void testEnableBatchJobRecoveryAndNotRetainPartitions() throws Exception {
// the release action will delay
releasePartitionsForJobFuture ->
assertThatFuture(releasePartitionsForJobFuture)
.willNotCompleteWithin(duration)
.willNotCompleteWithin(assertNotCompleteDuration)
.eventuallySucceeds()
.isEqualTo(jobId));
}
Expand Down Expand Up @@ -386,7 +390,7 @@ private void testJMCrashedAndPossibleRetainPartitions(
Consumer<CompletableFuture<JobID>> verifyAction)
throws Exception {
configuration.set(BatchExecutionOptions.JOB_RECOVERY_ENABLED, enableBatchJobRecovery);
configuration.set(TaskManagerOptions.REGISTRATION_TIMEOUT, duration);
configuration.set(TaskManagerOptions.REGISTRATION_TIMEOUT, registrationTimeout);
// the slot time out will try to release partition again, and we should avoid it
configuration.set(SLOT_TIMEOUT, Duration.ofMinutes(5));

Expand Down