Replies: 1 comment
-
Hi @AlfGoto, thanks for opening this - we'll try to reproduce the issue but given the conditions you described it might take a while before we can artificially reproduce it. Is there any chance that you could also share an example of a payload that fails and the exact JMESPath expression that you're using? If you prefer not to paste it here, could you send it privately via email at [email protected]? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Rare
IdempotencyPersistenceLayerError
before DynamoDB call withmakeIdempotent
in Step Functions Lambda (~1/1000 executions)Summary
We have a Lambda invoked by Step Functions that uses
makeIdempotent
with aDynamoDBPersistenceLayer
.On very rare occasions (estimated ~1 in 1000 executions, sometimes less than 2 times a week), it fails before calling DynamoDB, with the error:
The DynamoDB table exists and the Lambda has full permissions.
This same Lambda processes thousands of executions without error.
It only seems to happen when using an
eventKeyJmesPath
in object form, but we cannot reproduce reliably — the vast majority of those executions succeed.Environment
Invocation Flow
Step Functions is configured to invoke the Lambda like this (simplified CDK construct):
Lambda Handler
Logs (redacted)
The error occurs immediately, before any DynamoDB request in X-Ray:
No
PutItem
call is seen in X-Ray, which suggests the failure occurs before the persistence layer tries to store the record.Observations
eventKeyJmesPath
object form:'{ "emailType": emailType, "eventId": event.id }'
"event.activityId"
) variant, but those executions are much fewer.Expected behavior
IdempotencyPersistenceLayerError
.Additional context
When this happen its always in the same lambda execution, the first call of the lambda work but all the other one fails
We suspect this might be related to:
eventKeyJmesPath
undefined
or invalid data.Beta Was this translation helpful? Give feedback.
All reactions