Files
floci/src/test/java
TiM 1b53e53dba fix(lambda): destroy container handle on interrupt and generic exception (#530)
Closes #525.

Extends #529's timeout-path fix to the two remaining paths in
LambdaExecutorService.executeSync that were still returning a
potentially-dirty container to the warm pool.

- InterruptedException: the container may still be processing the
  previous request, so the response from the old invocation could be
  returned to a new one. Destroy the handle instead of releasing it.
- Exception (e.g. runtime API communication failure): container state
  is unknown. Destroy rather than trust it for reuse.

Matches AWS Lambda behavior where a container is discarded after any
internal error, not reused.

Tests mirror the existing timeoutInvocation_destroysHandle_doesNotRelease
pattern, one for each path.
2026-04-19 19:33:09 -05:00
..