Skip to content

Conversation

mayya-sharipova
Copy link
Contributor

This test fails from time to time on 6.8
This patch tries to address failures in 2 ways:

  1. Disables automatic refreshes. Request cache gets
    invalidated when refresh happens (as IndexReader's version
    may change), which may lead to test failurs.
  2. Makes predictable indexing. Before we were using
    random indexing requests that could lead to multiple
    segments with deleted documents. This patch ensures
    that we are indexing only necessary docs in a single
    bulk request which should create only a single segment
    for each index.

Relates to #61565

This test fails from time to time on 6.8
This patch tries to address failures in 2 ways:

1. Disables automatic refreshes. Request cache gets
invalidated when refresh happens (as IndexReader's version
may change), which may lead to test failurs.
2. Makes predictable indexing. Before we were using
random indexing requests that could lead to multiple
segments with deleted documents. This patch ensures
that we are indexing only necessary docs in a single
bulk request which should create only a single segment
for each index.

Relates to elastic#61565
@mayya-sharipova mayya-sharipova added the :Search/Search Search-related issues that do not fall into other categories label Jul 13, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jul 13, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@mayya-sharipova mayya-sharipova added >test-failure Triaged test failures from CI v6.8.18 >test Issues or PRs that are addressing/adding tests and removed Team:Search Meta label for search team >test-failure Triaged test failures from CI labels Jul 13, 2021
Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Mayya!

@mayya-sharipova mayya-sharipova merged commit 24311e0 into elastic:6.8 Jul 15, 2021
@mayya-sharipova mayya-sharipova deleted the test-cache-correction branch July 15, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories >test Issues or PRs that are addressing/adding tests v6.8.18

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants