trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.41k stars 3k forks source link

CI failure when compiling code: Could not acquire lock #21420

Open findepi opened 7 months ago

findepi commented 7 months ago

https://github.com/trinodb/trino/actions/runs/8570034199/job/23487134521?pr=21419

In # build everything to make sure dependencies of impacted modules are present

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /home/runner/.m2/wrapper/dists/apache-maven-3.9.6/a53741d1
Java version: 22, vendor: Eclipse Adoptium, runtime: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/22.0.0-36/x64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.5.0-1017-azure", arch: "amd64", family: "unix"
protoc-jar: executing: [/tmp/protoc14015193905919939222.exe, --version]
libprotoc [25](https://github.com/trinodb/trino/actions/runs/8570034199/job/23487134521?pr=21419#step:4:26).3
protoc-jar: executing: [/tmp/protoc14015193905919939222.exe, -I/home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources, --java_out=/home/runner/work/trino/trino/plugin/trino-kafka/target/generated-test-sources, /home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources/unsupported_recursive.proto]
Error:  Could not acquire lock(s)
Error:  java.lang.IllegalStateException: Could not acquire lock(s)
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error: Process completed with exit code 1.
findepi commented 5 months ago

https://github.com/trinodb/trino/actions/runs/9066439295/job/24909350017?pr=21954

Run export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /home/runner/.m2/wrapper/dists/apache-maven-3.9.6/a53741d1
Java version: [22](https://github.com/trinodb/trino/actions/runs/9066439295/job/24909350017?pr=21954#step:4:23).0.1, vendor: Eclipse Adoptium, runtime: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/22.0.1-8/x64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.5.0-1018-azure", arch: "amd64", family: "unix"
Error:  Failed to execute goal on project trino-spi: Could not resolve dependencies for project io.trino:trino-spi:jar:448-SNAPSHOT: Failed to collect dependencies at io.airlift:testing:jar:[24](https://github.com/trinodb/trino/actions/runs/9066439295/job/24909350017?pr=21954#step:4:25)8: java.lang.IllegalStateException: Could not acquire lock(s) -> [Help 1]
Error:  Failed to execute goal on project trino-cache: Could not resolve dependencies for project io.trino:trino-cache:jar:448-SNAPSHOT: Failed to collect dependencies at io.airlift:testing:jar:248: java.lang.IllegalStateException: Could not acquire lock(s) -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.

cc @wendigo

wendigo commented 5 months ago

This will be solved with the maven update that will come soon

findepi commented 5 months ago

https://github.com/trinodb/trino/actions/runs/9083731887/job/24963123412?pr=21973

findepi commented 5 months ago

@wendigo do you know what's causing these issues? i don't recall seeing this earlier, it looks relatively fresh thing

wendigo commented 5 months ago

@findepi It's and old thing - maven resolver

findepi commented 5 months ago

https://github.com/trinodb/trino/actions/runs/9083734439/job/24963078326?pr=21913 https://github.com/trinodb/trino/actions/runs/9083734439/job/24963080507?pr=21913 https://github.com/trinodb/trino/actions/runs/9083734439/job/24963080262?pr=21913

findepi commented 5 months ago

it might be old, but it's more frequent recently. something has changed