Skip to content
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

java.nio.file.NoSuchFileException: ... /.attach_pid #80943

Closed
idegtiarenko opened this issue Nov 23, 2021 · 3 comments · Fixed by #81482
Closed

java.nio.file.NoSuchFileException: ... /.attach_pid #80943

idegtiarenko opened this issue Nov 23, 2021 · 3 comments · Fixed by #81482
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI

Comments

@idegtiarenko
Copy link
Contributor

Build scan:

https://gradle-enterprise.elastic.co/s/fuew44mslhbog
https://gradle-enterprise.elastic.co/s/qk7jlgthv3g7a
https://gradle-enterprise.elastic.co/s/htw42u5uxpl7e
https://gradle-enterprise.elastic.co/s/kqpkhzgtqbdkg
https://gradle-enterprise.elastic.co/s/pybf7lmdvlxqs

Repro line:

Not avaliable

Reproduces locally?:

No

Applicable branches:

master

Failure history:

I am not sure how to find stats for this. Found above 5 build failures just by scrolling #es-test-triage so I assume this is happening at least couple of times per week.

UPD: https://gradle-enterprise.elastic.co/scans/failures?failures.failureClassification=all_failures&failures.failureMessage=Execution%20failed%20for%20task%20%27:x-pack:plugin:async-search:qa:rest:yamlRestTest%27.%0A%3E%20java.nio.file.NoSuchFileException:%20/var/lib/jenkins/workspace/elastic%2Belasticsearch%2Bmaster%2Bmultijob%2Bplatform-support-unix/os/*/distribution/archives/linux-tar/build/install/elasticsearch-8.1.0-SNAPSHOT/*&search.relativeStartTime=P28D&search.timeZoneId=Europe/Berlin

Failure excerpt:

Failure stack trace
Caused by: java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /var/lib/jenkins/workspace/elastic+elasticsearch+7.16+multijob+platform-support-unix/os/ubuntu-16.04&&immutable/distribution/archives/linux-tar/build/install/elasticsearch-7.16.0-SNAPSHOT/.attach_pid322537	
at java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)	
at java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)	
at java.util.Iterator.forEachRemaining(Iterator.java:132)	
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)	
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)	
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)	
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)	
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)	
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)	
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)	
at org.elasticsearch.gradle.testclusters.ElasticsearchNode.sync(ElasticsearchNode.java:1194)	
at org.elasticsearch.gradle.testclusters.ElasticsearchNode.syncWithLinks(ElasticsearchNode.java:1171)	
at org.elasticsearch.gradle.testclusters.ElasticsearchNode.setupNodeDistribution(ElasticsearchNode.java:1150)	
at org.elasticsearch.gradle.testclusters.ElasticsearchNode.start(ElasticsearchNode.java:510)
@idegtiarenko idegtiarenko added :Delivery/Build Build or test infrastructure >test-failure Triaged test failures from CI Team:Delivery Meta label for Delivery team labels Nov 23, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@idegtiarenko
Copy link
Contributor Author

idegtiarenko commented Nov 23, 2021

I suspect this could happen if the directory or one of the files in it is concurrently removed

try (Stream<Path> stream = Files.walk(sourceRoot)) {
stream.forEach(source -> {

@markharwood
Copy link
Contributor

Looks like another case today https://gradle-enterprise.elastic.co/s/5th7cmf7s3gxe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants