Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Detecting a mid-air collision with Bugzilla
Detecting a mid-air collision with Bugzilla [message #40665] Thu, 10 January 2008 21:57 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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)?
>
Re: Detecting a mid-air collision with Bugzilla [message #586865 is a reply to message #40665] Fri, 11 January 2008 02:34 Go to previous message
Robert Elves is currently offline Robert ElvesFriend
Messages: 87
Registered: July 2009
Member
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)?
>
Previous Topic:Unable to load class org.eclipse.mylyn.internal.java.ui.JavaStackTraceHyperlinkDetector
Next Topic:Unable to execute jira query
Goto Forum:
  


Current Time: Sat Apr 20 01:19:55 GMT 2024

Powered by FUDForum. Page generated in 0.03239 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top