Re: [BUGS] Incorrect response code after XA recovery

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] Incorrect response code after XA recovery
Дата
Msg-id 25825.1375105824@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Incorrect response code after XA recovery  (Ondrej Chaloupka <ochaloup@redhat.com>)
Ответы Re: [BUGS] Incorrect response code after XA recovery  (Tom Jenkinson <tom.jenkinson@redhat.com>)
Список pgsql-general
Ondrej Chaloupka <ochaloup@redhat.com> writes:
> The OTS specification requires both bottom up and top down recovery to be triggered by the recovering resource. This
causesthat two rollback calls are done against the DB. DB receives rollback call and does the rollback. Then for the
secondtime it returns the exceptional code. As the DB already rollbacked the transaction and forgot about it the DB
returnserror that no such transaction exists. But this seems to be against OTS specification. 

It's not likely that we would consider changing the behavior of ROLLBACK
PREPARED.  The alternatives we would have are (1) silently accept a
ROLLBACK against a non-existent transaction ID, or (2) remember every
rolled-back ID forever.  Neither seems sane in the least.

It seems to me that this is something client-side code, probably the XA
manager, would need to deal with.  The XA manager already has to track
uncommitted 2-phase transactions, and would furthermore have the best
idea of when it would be safe to forget about a rolled-back ID.

Right offhand it appears to me that that Red Hat bug is filed against
the correct component, and you need to push them harder to fix their
bug/shortcoming rather than claim it's our problem.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: to_char with locale decimal separator
Следующее
От: Javier de la Torre
Дата:
Сообщение: Re: Event trigger information accessibility on plpgsql