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

P2 download race condition #181

Open
nedtwigg opened this issue Jan 8, 2025 · 0 comments
Open

P2 download race condition #181

nedtwigg opened this issue Jan 8, 2025 · 0 comments

Comments

@nedtwigg
Copy link
Collaborator

nedtwigg commented Jan 8, 2025

When used in a Spotless build, it is sometimes triggering this race condition:

Caused by: java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/jenkins/.m2/repository/dev/equo/p2-data/bundle-pool/https-eclipse-p2-mirror.com-p2-4.34-/com.sun.jna_5.15.0.v20240915-2000.jar
	at dev.equo.solstice.p2.Unchecked.wrap(Unchecked.java:25)
	at dev.equo.solstice.p2.P2QueryResult.<init>(P2QueryResult.java:38)
	at dev.equo.solstice.p2.P2Model.query(P2Model.java:137)
	at com.diffplug.spotless.extra.EquoBasedStepBuilder.lambda$build$0(EquoBasedStepBuilder.java:128)
	... 82 more
Caused by: java.nio.file.FileAlreadyExistsException: /home/jenkins/.m2/repository/dev/equo/p2-data/bundle-pool/https-eclipse-p2-mirror.com-p2-4.34-/com.sun.jna_5.15.0.v20240915-2000.jar
	at dev.equo.solstice.p2.JarCache.download(JarCache.java:65)
	at dev.equo.solstice.p2.P2Client.download(P2Client.java:76)
	at dev.equo.solstice.p2.P2QueryResult.<init>(P2QueryResult.java:35)
	... 84 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant