Maven Version
3.9.8
Version
0.0.8
Sentry SDK Version
7.14.0
Steps to Reproduce
- Have a multi-module Maven project
- Run
mvn install -T1C (or higher concurrency)
This breaks non-deterministically
Expected Result
Sources are uploaded to Sentry
Actual Result
Getting an error
/bin/sh: 1: /tmp/.sentry-cli10465974399318709029.exe: Text file busy
As far as I understand it is coming from this line
|
escape(getCliPath(mavenProject, sentryCliExecutablePath)) |
Which is preceded by
|
final @NotNull File tempFile = File.createTempFile(".sentry-cli", ".exe"); |
After reviewing how thread safe the implementation is, I couldn't pinpoint where the issue is.
Not having other ideas, it seems like the root cause may lie in the JVM bug: https://bugs.openjdk.org/browse/JDK-8068370
It is suggested that a retry could help with that issue. Would be happy to accept a PR that implements a single-attempt retry logic for this bit of code?
Maven Version
3.9.8
Version
0.0.8
Sentry SDK Version
7.14.0
Steps to Reproduce
mvn install -T1C(or higher concurrency)This breaks non-deterministically
Expected Result
Sources are uploaded to Sentry
Actual Result
Getting an error
As far as I understand it is coming from this line
sentry-maven-plugin/src/main/java/io/sentry/cli/SentryCliRunner.java
Line 75 in daa4fd9
Which is preceded by
sentry-maven-plugin/src/main/java/io/sentry/SentryCliProvider.java
Line 112 in daa4fd9
After reviewing how thread safe the implementation is, I couldn't pinpoint where the issue is.
Not having other ideas, it seems like the root cause may lie in the JVM bug: https://bugs.openjdk.org/browse/JDK-8068370
It is suggested that a retry could help with that issue. Would be happy to accept a PR that implements a single-attempt retry logic for this bit of code?