Skip to content

[Test] Increase timeout of waiting for indexing operations#112908

Merged
elasticsearchmachine merged 3 commits intoelastic:mainfrom
ywangd:es-112423-fix
Sep 17, 2024
Merged

[Test] Increase timeout of waiting for indexing operations#112908
elasticsearchmachine merged 3 commits intoelastic:mainfrom
ywangd:es-112423-fix

Conversation

@ywangd
Copy link
Member

@ywangd ywangd commented Sep 16, 2024

Larger number of indexing operations can take a while to complete on slower machines for which we need to wait for longer.

Relates: #111957
Resolves: #112423

Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: elastic#111957
Resolves: elastic#112423
@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v8.16.0 v9.0.0 labels Sep 16, 2024
@ywangd ywangd requested a review from DaveCTurner September 16, 2024 06:10
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Sep 16, 2024
Comment on lines -1867 to +1875
safeAwait(inFlightAsyncOperations.remove(waitFor));
try {
assertTrue(
"operation did not complete within timeout",
inFlightAsyncOperations.remove(waitFor).await(60, TimeUnit.SECONDS)
);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
fail(e, "interrupted while waiting for operation to complete");
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Alternatively, we could limit the number of operations. I think most usages are just a few indexing requests. But decided to keep the change minimal which is a middle ground between the previous code (wait indefinitely) and the current code.

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Bleurgh we should really not have such slow tests here. I am planning to revisit this area at some point to clean up the waiting mechanism, this'll do for now.

@ywangd ywangd added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge labels Sep 16, 2024
@ywangd
Copy link
Member Author

ywangd commented Sep 16, 2024

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 91a7f0f into elastic:main Sep 17, 2024
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Sep 17, 2024
…12908)

Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: elastic#111957 Resolves: elastic#112423
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

@ywangd ywangd deleted the es-112423-fix branch September 17, 2024 00:35
elasticsearchmachine pushed a commit that referenced this pull request Sep 17, 2024
…112978)

Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: #111957 Resolves: #112423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] UpdateMappingIntegrationIT class failing

5 participants