Skip to content

Conversation

@darkryder
Copy link

@darkryder darkryder commented Nov 11, 2025

As the title states, when a sandbox OOMs, it will stay attached to the LambdaInstance.
This might get cleared up by the evictor if we get lucky, but all requests routed to this will fail until it happens.

Reproduction steps:

  1. Register a function that allocates memory on demand
def f(event):
    buf = 'M' * (event['mem'] * 1024**2)
    return True
  1. Run for mem in 5 1024 5; do curl -sS -X POST localhost:5000/run/<fn_name> -d '{"mem": '$mem'}'; echo; done;. We find that the third invocation fails because the second failed.
  2. Apply the patch
  3. Run for mem in 5 1024 5; do curl -sS -X POST localhost:5000/run/<fn_name> -d '{"mem": '$mem'}'; echo; done;. We find that the third invocation succeeds even though the second failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant