Skip to content

Commit e95ad11

Browse files
committed
revert exception change
1 parent 8c443bd commit e95ad11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/src/main/java/software/amazon/lambda/durable/operation/ChildContextOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ private void checkpointSuccess(T result) {
150150
private void handleChildContextFailure(Throwable exception) {
151151
exception = ExceptionHelper.unwrapCompletableFuture(exception);
152152
if (exception instanceof SuspendExecutionException) {
153-
// The execution is going to suspend. do nothing
154-
return;
153+
// Rethrow Error immediately — do not checkpoint
154+
ExceptionHelper.sneakyThrow(exception);
155155
}
156156
if (exception instanceof UnrecoverableDurableExecutionException) {
157157
terminateExecution((UnrecoverableDurableExecutionException) exception);

0 commit comments

Comments
 (0)