-
Notifications
You must be signed in to change notification settings - Fork 461
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
Spotless Gradle 6.0.0 -> 6.0.2 ConcurrentModificationException bug for large parallel builds #1015
Comments
Thanks very much for the example, it reproduces fine on my Macbook Air. Importantly, I'm seeing two failures. The first exception is this:
And then I get the exception you linked above, "a configuration with that name already exists". I think it's the first |
Fixed in |
I think the fix for this issue is causing #1024 |
@TimvdLippe definitely suspicious looking, but I don't think so, see explanation at #1024. |
Hi @nedtwigg - thanks for the quick fix. I am trying 6.0.4, and while the error I had isn't showing anymore I get a deprecation warning (which currently we have set to fail the build but for now can workaround by disabling it)
|
For the sake of keeping things organized, I'm gonna close this out and follow-up the warning at #1028 |
If you are submitting a bug, please include the following:
gradlew spotless[Apply/Check] --stacktrace
I am trying to update spotless from 5.x to 6.x and get the below exception. The project uses
org.gradle.parallel=true
and throws this exception on a machine with 16 cores, presumably causing more parallelism than other machines may cause, so may be hard to repro locally. But hopefully based on the stack trace we can find a location to verify. Perhaps this should use ConcurrentHashMap / computeIfAbsent?https://github.com/diffplug/spotless/blob/main/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/GradleProvisioner.java#L54
Executing the task individually succeeds, it is when executing on the whole project it fails probably due to sync issue
Gradle
: 7.3.1spotless-gradle-plugin
: 6.0.2OS: Amazon Linux 2 (AWS m5.4xlarge)
Repro: https://github.com/anuraaga/opentelemetry-java-instrumentation/tree/spotless-repro
Run
./gradlew spotlessApply
(may not repro on all machines). Many spotless tasks run and succeed but the error happens and fails the buildSpotless config:
The text was updated successfully, but these errors were encountered: