Skip to content

Fix BulkByScrollUsesAllScrollDocumentsAfterConflictsIntegTests#79428

Merged
fcofdez merged 6 commits intoelastic:masterfrom
fcofdez:fix-reindex-tests
Oct 20, 2021
Merged

Fix BulkByScrollUsesAllScrollDocumentsAfterConflictsIntegTests#79428
fcofdez merged 6 commits intoelastic:masterfrom
fcofdez:fix-reindex-tests

Conversation

@fcofdez
Copy link
Copy Markdown
Contributor

@fcofdez fcofdez commented Oct 19, 2021

Since #77731 TransportBulkAction is dispatched into the Write thread pool,
this test makes use of a deterministic task order in the data node write
thread pool. To ensure that ordering, execute the TransportBulkAction
in a coordinator node preventing that additional tasks are scheduled into
the data node write thread pool.

Closes #79300

Since elastic#7773 was introduced, TransportBulkAction is dispatched in the
Write thread pool, this changed the expectations in ordering that these
test have. This commit lets the TransportBulkAction to run so the
expected write ordering in the test is mantained.

Closes elastic#79300
@fcofdez fcofdez added >test Issues or PRs that are addressing/adding tests v8.0.0 :Distributed/Reindex Issues relating to reindex that are not caused by issues further down Team:Distributed Meta label for distributed team. labels Oct 19, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Oct 19, 2021

I'm testing a simpler fix, I'll push it shortly

Copy link
Copy Markdown
Contributor

@Tim-Brooks Tim-Brooks left a comment

Choose a reason for hiding this comment

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

LGTM

@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Oct 20, 2021

@elasticmachine run elasticsearch-ci/part-2
unrelated failure

@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Oct 20, 2021

@elasticmachine run elasticsearch-ci/part-2

@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Oct 20, 2021

@elasticmachine update branch

@fcofdez fcofdez merged commit ddff83e into elastic:master Oct 20, 2021
@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Oct 20, 2021

Thanks Tim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Reindex Issues relating to reindex that are not caused by issues further down Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] BulkByScrollUsesAllScrollDocumentsAfterConflictsIntegTests testReindex failing

4 participants