Malone does not cope well with concurrent updates
Bug #2610 reported by
Christian Reis
This bug report is a duplicate of:
Bug #2088: psycopgda reconnection and conflict handling.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Medium
|
Unassigned |
Bug Description
I just set the assignee of a bugtask at the same time as Celso was doing it. I got a system error:
ProgrammingError: ERROR: could not serialize access due to concurrent update UPDATE BugTask SET assignee = 247596 WHERE id = 2715
We were changing the same row and same field to the same value. I don't think Malone needs to detect that the changes were identical, but it can't give me a system error.
To post a comment you must log in.
Christian Reis wrote: /launchpad. net/malone/ bugs/2610
> Public bug reported:
> https:/
>
> Affects: upstream malone
> Severity: Normal
> Priority: Medium
> Status: New
>
> Description:
> I just set the assignee of a bugtask at the same time as Celso was doing it. I
> got a system error:
>
> ProgrammingError: ERROR: could not serialize access due to concurrent update
> UPDATE BugTask SET assignee = 247596 WHERE id = 2715
>
> We were changing the same row and same field to the same value. I don't think
> Malone needs to detect that the changes were identical, but it can't give me a
> system error.
We need to catch this particular error (not just psycopg. ProgrammingErro r,
but this particular 'serialize access' one) and make Z3 raise the relevant
ConflictError that causes it to retry the transaction. (Dealing with this
case is the resposibility of the application - these exceptions are to be
expected when using the serialize transaction isolation level)
-- www.canonical. com/ www.ubuntu. com/
Stuart Bishop <email address hidden> http://
Canonical Ltd. http://