Detecting a mid-air collision with Bugzilla [message #40665] |
Thu, 10 January 2008 21:57 |
Eclipse User |
|
|
|
Originally posted by: matthew.beermann.cerner.com
I'm using Mylyn headlessly to post information to Bugzilla. When I do,
there's a small chance that I might cause a "mid-air collision", which is
what happens when two users attempt to edit the same bug at the same time.
When this happens, BugzillaTaskDataHandler#postTaskData will (I think)
return a CoreException. My question is, how do I detect that this
particular case has occured, and I should start over and retry (as opposed
to all the other error cases where I shouldn't retry)?
|
|
|
Re: Detecting a mid-air collision with Bugzilla [message #40819 is a reply to message #40665] |
Fri, 11 January 2008 02:34 |
Eclipse User |
|
|
|
Originally posted by: rob.elves.eclipse.org
In the event of a mid-air collision, the CoreException will have a
Status associated with it. That Status will have a code equal to
RepositoryStatus.REPOSITORY_COLLISION.
Regards,
-Rob
Matthew Beermann wrote:
> I'm using Mylyn headlessly to post information to Bugzilla. When I do,
> there's a small chance that I might cause a "mid-air collision", which
> is what happens when two users attempt to edit the same bug at the same
> time.
>
> When this happens, BugzillaTaskDataHandler#postTaskData will (I think)
> return a CoreException. My question is, how do I detect that this
> particular case has occured, and I should start over and retry (as
> opposed to all the other error cases where I shouldn't retry)?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds