Skip to content

Wait for vector index to stabilize - #70649

Merged
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/wait_for_vector_index
Jul 29, 2026
Merged

Wait for vector index to stabilize#70649
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/wait_for_vector_index

Conversation

@o-nikolas

Copy link
Copy Markdown
Contributor

The Bedrock retrieve-and-generate system test creates an OpenSearch
Serverless vector index and then immediately proceeds to Bedrock
Knowledge Base ingestion. However, an acknowledged index-creation call
does not guarantee the index is ready for use: OpenSearch Serverless
materializes the index asynchronously and exposes no status API to
check on its progress. When ingestion starts before the index can
serve requests, the test fails intermittently.

Since there is no status API for the index, this change polls a
trivial match_all search against the new index as a readiness probe
(retrying TransportError up to 30 times at 5-second intervals)
before allowing downstream tasks to run, eliminating the race.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jul 28, 2026
@vincbeck
vincbeck merged commit 44e5982 into apache:main Jul 29, 2026
79 of 80 checks passed
@vincbeck
vincbeck deleted the onikolas/wait_for_vector_index branch July 29, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants