-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
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?
Reactions are currently unavailable