pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #12035: Prepared Transactions cannot be ROLLBACKed 2+ messages / 2 participants [nested] [flat]
* BUG #12035: Prepared Transactions cannot be ROLLBACKed @ 2014-11-23 12:32 ludwig.adam@petafuel.de 2014-11-23 16:39 ` Re: BUG #12035: Prepared Transactions cannot be ROLLBACKed Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: ludwig.adam@petafuel.de @ 2014-11-23 12:32 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 12035 Logged by: Ludwig Adam Email address: ludwig.adam@petafuel.de PostgreSQL version: 9.1.14 Operating system: on x86_64-unknown-linux-gnu, com (Ubuntu 12.04 LTS Description: Hi, Matheus0l on #postgresql asked me to file a bug on this: Our setup is two postgres servers in streaming replication controlled by pgpool II. After a failover (i.e. slave got promoted) we had around 16 Prepared Transactions in pg_prepared_xacts for the new master, locking some tables. However we were unable to Perform "ROLLBACK prepared 'gid'"- it gave us the error message:" ERROR: cannot rollback prepared transaction 'gid'- transaction is busy." I can confirm that there were no backend processes trying to ROLLBACK or COMMIT at the same time- issue persisted with all backend connections disconnected. We then did a base-backup and restarted replication to the former master. During replication, the prepared transactions were not present, however, once we promoted that server to master, the transactions were there again and could not be ROLLBACKed either. After discussions on #postgresql we finally resolved this by setting up another base backup, deleting the corresponding state files in pg_twophase and promoting to master. The new master did not have these transactions listed any longer. Please feel free to get in touch with me, should you have any questions for specifics. Ludwig -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #12035: Prepared Transactions cannot be ROLLBACKed 2014-11-23 12:32 BUG #12035: Prepared Transactions cannot be ROLLBACKed ludwig.adam@petafuel.de @ 2014-11-23 16:39 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2014-11-23 16:39 UTC (permalink / raw) To: ludwig.adam@petafuel.de; +Cc: pgsql-bugs ludwig.adam@petafuel.de writes: > Matheus0l on #postgresql asked me to file a bug on this: Our setup is two > postgres servers in streaming replication controlled by pgpool II. After a > failover (i.e. slave got promoted) we had around 16 Prepared Transactions in > pg_prepared_xacts for the new master, locking some tables. > However we were unable to Perform "ROLLBACK prepared 'gid'"- it gave us the > error message:" > ERROR: cannot rollback prepared transaction 'gid'- transaction is busy." I cannot find any occurrence of such an error message in the Postgres source code (either HEAD or 9.1.x). So I think this message must have come from some other code --- perhaps whatever you're using for a 2PC controller? If that controller saw the old master and new master as two different systems, it's not too surprising that it got confused. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-11-23 16:39 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-11-23 12:32 BUG #12035: Prepared Transactions cannot be ROLLBACKed ludwig.adam@petafuel.de 2014-11-23 16:39 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox