Skip to content

Commit 173f84d

Browse files
authored
fix(error): increase retry attempts to mitigate policy creation race condition in some cases (#355)
1 parent a9f4119 commit 173f84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda/opensearch-serverless-custom-resources/custom_resources/opensearch_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def create_index(client: OpenSearch, index_name: str, mapping: dict[str, str]) -
159159
# Add retry on AuthorizationException to mitigate policy creation race condition
160160
@retry(
161161
retry=retry_if_exception_type(AuthorizationException),
162-
stop=stop_after_attempt(3),
162+
stop=stop_after_attempt(10),
163163
wait=wait_exponential_jitter(1, 3),
164164
)
165165
def handle_create(

0 commit comments

Comments
 (0)