File tree Expand file tree Collapse file tree
sdk/src/main/java/software/amazon/lambda/durable/execution Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import java .util .concurrent .CancellationException ;
1515import java .util .concurrent .CompletableFuture ;
1616import java .util .concurrent .ThreadPoolExecutor ;
17- import java .util .concurrent .TimeUnit ;
18- import java .util .concurrent .TimeoutException ;
1917import java .util .concurrent .atomic .AtomicReference ;
2018import java .util .stream .Collectors ;
2119import 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 }
You can’t perform that action at this time.
0 commit comments