Skip to content

[9.5] Backport bbq_flat yaml refresh fixes#154996

Open
mayya-sharipova wants to merge 1 commit into
elastic:9.5from
mayya-sharipova:backport/9.5/bbq-flat-refresh-154705
Open

[9.5] Backport bbq_flat yaml refresh fixes#154996
mayya-sharipova wants to merge 1 commit into
elastic:9.5from
mayya-sharipova:backport/9.5/bbq-flat-refresh-154705

Conversation

@mayya-sharipova

@mayya-sharipova mayya-sharipova commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Backports two test-only visibility fixes to 9.5:

Why

The 9.5 setup for search.vectors/42_knn_search_bbq_flat ("Test knn search") indexed three docs and force-merged but never refreshed before searching. This resulted in intermittently returning 2 hits instead of 3 and failing:

field [hits.hits.1._id] does not match: Expected "3" but was "2"
element was a list with 2 elements, but [2] was out of bounds

Both refresh fixes already exist on main but were never backported to 9.5/9.4; this brings 9.5 in line with main.

Closes #154705

Backports two test-only visibility fixes to 9.5:
  - elastic#154272 add index refresh to bbq yaml tests
  - elastic#154688 add index refresh after forced merge

The 9.5 setup for search.vectors/42_knn_search_bbq_flat
never refreshed after indexing/forcemerge, so the knn
search could run against a pre-refresh view missing the
last-indexed doc, intermittently returning 2 hits instead
of 3. Also unmutes the corresponding test (elastic#154705).
@mayya-sharipova mayya-sharipova added backport :Search Relevance/Vectors Vector search >test-failure Triaged test failures from CI labels Jul 24, 2026
@mayya-sharipova mayya-sharipova added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged v9.4.5 and removed >test-failure Triaged test failures from CI labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport :Search Relevance/Vectors Vector search >test Issues or PRs that are addressing/adding tests v9.4.5 v9.5.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants