Skip to content

Commit 5d28c3d

Browse files
authored
chore(oss): increase retry attempts for index management (#372)
chore(oss): increase retry attempts for index management in oss
1 parent 5db3c64 commit 5d28c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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(10),
162+
stop=stop_after_attempt(30),
163163
wait=wait_exponential_jitter(1, 3),
164164
)
165165
def handle_create(
@@ -184,7 +184,7 @@ def handle_create(
184184

185185
@retry(
186186
retry=retry_if_exception_type(AuthorizationException),
187-
stop=stop_after_attempt(3),
187+
stop=stop_after_attempt(30),
188188
wait=wait_exponential_jitter(1, 3),
189189
)
190190
def handle_delete(client: OpenSearch, index_name: str):

0 commit comments

Comments
 (0)