gunnargrosch / failure-lambda

Module for fault injection into AWS Lambda
MIT License
94 stars 13 forks source link

Problem with enable/disable of failuremode: denylist #16

Closed gunnargrosch closed 2 years ago

gunnargrosch commented 3 years ago

Enabling or disabling experiments using failuremode: denylist is not working as expected. There is either a delay or a refresh of the function container (update, redeploy, new cold start, etc.).

jpbarto commented 3 years ago

This is due to a state issue, the event listener used by the mitm library persists across executions of the Lambda function. This is also reflected in the code throwing a MxListenersExceededWarning if the same Lambda is executed too (about 10) many times.

gunnargrosch commented 2 years ago

Fixed in 0.4.2.