Skip to content

Commit 207ef8d

Browse files
committed
fix the validator for anyOf
1 parent 6315574 commit 207ef8d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sdk/src/main/java/software/amazon/lambda/durable/execution/ExecutionManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
import java.util.concurrent.CancellationException;
1515
import java.util.concurrent.CompletableFuture;
1616
import java.util.concurrent.ThreadPoolExecutor;
17-
import java.util.concurrent.TimeUnit;
18-
import java.util.concurrent.TimeoutException;
1917
import java.util.concurrent.atomic.AtomicReference;
2018
import java.util.stream.Collectors;
2119
import org.slf4j.Logger;
@@ -299,7 +297,8 @@ private void validateRunningThreads() {
299297
userHandlerFuture.get();
300298
} catch (InterruptedException | CancellationException e) {
301299
// if the user handler is stuck
302-
throw new IllegalStateException("Stuck running user handler when shutting down: " + op.getOperationId());
300+
throw new IllegalStateException(
301+
"Stuck running user handler when shutting down: " + op.getOperationId());
303302
} catch (Exception e) {
304303
// ok if the future completed exceptionally
305304
}

0 commit comments

Comments
 (0)