Repository navigation
[aws-lambda] Add retryable_status_codes option to retry transient HTTP status codes - #7165
Merged
dlvenable merged 1 commit intoOct 2, 2026
Conversation
…P status codes Signed-off-by: LuisNorman <lunorman@amazon.com>
LuisNorman
requested review from
KarstenSchnitter,
Zhangxunmt,
dinujoh,
divbok,
dlvenable,
graytaylor0,
kkondaka,
oeyh,
san81,
sb2k16,
srikanthjg and
srikanthpadakanti
as code owners
September 28, 2026 18:24
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
graytaylor0
approved these changes
Sep 30, 2026
graytaylor0
left a comment
Member
There was a problem hiding this comment.
Thanks for adding this feature! It looks good to me. Please follow up with a documentation PR when you get a chance: https://github.com/opensearch-project/documentation-website/blob/main/_data-prepper/pipelines/configuration/processors/aws-lambda.md
1 task done
LuisNorman
pushed a commit
to LuisNorman/documentation-website
that referenced
this pull request
Oct 1, 2026
Documents the opt-in retryable_status_codes client option added in opensearch-project/data-prepper#7165, which retries transient Lambda invocation 5xx errors instead of forwarding the failed batch. Signed-off-by: LuisNorman <lunorman@amazon.com>
dlvenable
approved these changes
Oct 2, 2026
kolchfa-aws
pushed a commit
to opensearch-project/documentation-website
that referenced
this pull request
Oct 5, 2026
Documents the opt-in retryable_status_codes client option added in opensearch-project/data-prepper#7165, which retries transient Lambda invocation 5xx errors instead of forwarding the failed batch. Signed-off-by: LuisNorman <lunorman@amazon.com> Co-authored-by: LuisNorman <lunorman@amazon.com>
kolchfa-aws
pushed a commit
to opensearch-project/documentation-website
that referenced
this pull request
Oct 5, 2026
… (#13228) Documents the opt-in retryable_status_codes client option added in opensearch-project/data-prepper#7165, which retries transient Lambda invocation 5xx errors instead of forwarding the failed batch. (cherry picked from commit 759c28b) Signed-off-by: LuisNorman <lunorman@amazon.com> Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com> Co-authored-by: Luis Norman <lanorman14@gmail.com> Co-authored-by: LuisNorman <lunorman@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an opt-in
retryable_status_codesclient option to theaws_lambdaprocessor/sink. When set, the Lambda client's retry policy also retries responses carrying those HTTP status codes (viaRetryOnStatusCodeCondition), in addition to the existing retryable-exception handling.Transient Lambda gateway errors (e.g. 502 Bad Gateway, 504 Gateway Timeout) surface as a generic
LambdaExceptionthat the currentCustomLambdaRetryConditiondoes not match, so they are not retried today. Making them retryable — for idempotent functions — avoids forwarding the failed batch downstream on a transient error.client.retryable_status_codes(default: empty → current behavior; opt-in, intended for idempotent functions).LambdaClientFactorycomposesCustomLambdaRetryConditionwithRetryOnStatusCodeConditionwhen the set is non-empty.Issues Resolved
Relates to #5491
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.