Skip to content

[8.18] [Tests] Fix copying files for test cluster (#124628) #124656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

jozala
Copy link
Contributor

@jozala jozala commented Mar 12, 2025

Backports the following commits to 8.18:

In case when file with `.attach_pid` in name was stored in distribution
and then deleted, the exception could stop copying/linking files
without any sign of issue. The files were then missing in the cluster
used in the test causing them sometimes to fail (depending on which
files haven't been copied).

When using `Files.walk` it is impossible to catch the IOException and
continue walking through files conditionally. It has been replaced with
FileVisitor implementation to be able to continue if the exception is
caused by files left temporarily by JVM but no longer available.
@jozala jozala added :Delivery/Build Build or test infrastructure >non-issue >test Issues or PRs that are addressing/adding tests auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Delivery Meta label for Delivery team labels Mar 12, 2025
@elasticsearchmachine elasticsearchmachine merged commit 6a560f7 into elastic:8.18 Mar 12, 2025
15 checks passed
@jozala jozala deleted the backport/8.18/pr-124628 branch March 12, 2025 16:32
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!) backport :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v8.18.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants