[cross-posted from ivysvn mailing list. hoping someone on the larger
ivy-user list has dealt with this problem before... - Jtf ]

Is it possible to publish from multiple processes at the same time?

I suspect not but I'm looking for someone who knows what they're
talking about to confirm or deny...

Currently we're having a problem when we have multiple builds running
at the same time, each of them trying to publish. We end up with an
IOException. Turning on verbose output the nested exceptions look
like:

 impossible to publish artifacts for <module.name>;1.0.0:
java.io.IOException
       at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
...
Caused by: java.io.IOException
       at
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:
236)
...
Caused by: org.tmatesoft.svn.core.SVNException: svn: The specified
baseline is not the latest baseline, so it may not be checked out.
svn: CHECKOUT of '/ivy-sandbox/!svn/bln/60021': 409 Conflict (http://
svn.tumbleweed.com)
       at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:
55)
       at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:
40)
       at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:
521)
       at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:
237)
       at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:
225)
       at
org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doCheckout(DAVConnection.java:
333)
       at
org.tmatesoft.svn.core.internal.io.dav.DAVCommitEditor.createActivity(DAVCommitEditor.java:
410)
       at
org.tmatesoft.svn.core.internal.io.dav.DAVCommitEditor.openRoot(DAVCommitEditor.java:
85)
       at fm.last.ivy.plugins.svnresolver.SvnUtils.addFile(SvnUtils.java:
144)
       at
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:
230)
       ... 54 more

Now I know from looking at the code here that SvnUtils.addFile has
been removed, so if I was optimistic I'd hope that just upgrading to
latest would solve all my problems... but I suspect that the race
condition would remain.

Thoughts?  Anyone have a good solution to this problem?

Jtf

-- 
http://blog.jeffreyfredrick.com

Reply via email to