Skip to content

Wait for vector index to stabilize - #70649

Open
o-nikolas wants to merge 1 commit into
apache:mainfrom
aws-mwaa:onikolas/wait_for_vector_index
Open

Wait for vector index to stabilize#70649
o-nikolas wants to merge 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
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.

1 participant