Closed GoogleCodeExporter closed 9 years ago
Fixed in r413.
The server became unresponsive as one of the SQL queries failed a foreign key
constraint and started to fail subsequent transactions.
2008-03-21 18:31:58 EET ERROR: insert or update on table "todos_in_pages"
violates
foreign key constraint "$1"
2008-03-21 18:31:58 EET DETAIL: Key (todo_id)=(2) is not present in table
"todos".
2008-03-21 18:31:58 EET STATEMENT: BEGIN;
DELETE FROM nw.todos_in_pages WHERE page_id = 1;INSERT INTO
nw.todos_in_pages(todo_id,page_id) values(2, 1);INSERT INTO
nw.todos_in_pages(todo_id,page_id) values(1, 1);COMMIT
The fix was to not insert/delete inexistent todos into/from this relation.
Original comment by jjhel...@gmail.com
on 22 Mar 2008 at 8:28
Note: the server shouldn't go into a unresponsive mode even if something like
this
happens. Perhaps this should be remedied by doing a ROLLBACK if any of the
commands
inside the txn failed.
Original comment by jjhel...@gmail.com
on 22 Mar 2008 at 8:32
Original issue reported on code.google.com by
jjhel...@gmail.com
on 17 Mar 2008 at 7:44