pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
New kind of crash?
7+ messages / 3 participants
[nested] [flat]

* New kind of crash?
@ 2013-03-09 00:27  Josh Berkus <josh@agliodbs.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Josh Berkus @ 2013-03-09 00:27 UTC (permalink / raw)
  To: pgsql-bugs

Folks,

This is one I've never seen before:

=> select generate_master_tables();
WARNING:  AbortTransaction while in COMMIT state
PANIC:  cannot abort transaction 9387287, it was already committed
PANIC:  cannot abort transaction 9387287, it was already committed
The connection to the server was lost. Attempting reset: Failed.
Time: 42259.753 ms
!>

Interestingly, Postges came back up on its own after about a minute and
seems to be OK.  The stored procedure in question is one which creates
about 600 tables.  This actually exceeds max_locks_per_transaction, but
what happened above is not the normal failure for that.

Note that the tables were, in fact, created, and as far as I can tell
there's no corruption of the database.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-09 03:17  Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  parent: Josh Berkus <josh@agliodbs.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Mark Kirkwood @ 2013-03-09 03:17 UTC (permalink / raw)
  To: pgsql-bugs

Do you have any non default procedural languages installed? I provoked 
exactly that error with a similar script which used a PL/R procedure 
(see BUGS thread "PL/R Median Busts Commit"...the cause is signal 
hi-jacking in that case).

Regards

Mark

On 09/03/13 13:27, Josh Berkus wrote:
> Folks,
>
> This is one I've never seen before:
>
> => select generate_master_tables();
> WARNING:  AbortTransaction while in COMMIT state
> PANIC:  cannot abort transaction 9387287, it was already committed
> PANIC:  cannot abort transaction 9387287, it was already committed
> The connection to the server was lost. Attempting reset: Failed.
> Time: 42259.753 ms
> !>
>
> Interestingly, Postges came back up on its own after about a minute and
> seems to be OK.  The stored procedure in question is one which creates
> about 600 tables.  This actually exceeds max_locks_per_transaction, but
> what happened above is not the normal failure for that.
>
> Note that the tables were, in fact, created, and as far as I can tell
> there's no corruption of the database.
>



-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-09 03:27  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Josh Berkus <josh@agliodbs.com>
  1 sibling, 2 replies; 7+ messages in thread

From: Alvaro Herrera @ 2013-03-09 03:27 UTC (permalink / raw)
  To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs

Josh Berkus wrote:
> Folks,
> 
> This is one I've never seen before:
> 
> => select generate_master_tables();
> WARNING:  AbortTransaction while in COMMIT state
> PANIC:  cannot abort transaction 9387287, it was already committed

Anything that causes an ERROR in the final stages of a transaction
commit will look like this.  Maybe, for example, something tried to
acquire more shared memory for something (serializable xact?) but that
was already full because of lock objects.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-10 00:00  Josh Berkus <josh@agliodbs.com>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Josh Berkus @ 2013-03-10 00:00 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-bugs

On 03/08/2013 07:27 PM, Alvaro Herrera wrote:
> Josh Berkus wrote:
>> Folks,
>>
>> This is one I've never seen before:
>>
>> => select generate_master_tables();
>> WARNING:  AbortTransaction while in COMMIT state
>> PANIC:  cannot abort transaction 9387287, it was already committed
> 
> Anything that causes an ERROR in the final stages of a transaction
> commit will look like this.  Maybe, for example, something tried to
> acquire more shared memory for something (serializable xact?) but that
> was already full because of lock objects.
> 

Well, is it worth trying to reproduce and diagnose?

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-10 00:03  Josh Berkus <josh@agliodbs.com>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Josh Berkus @ 2013-03-10 00:03 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-bugs

Mark,

I have PL/R and PL/v8 installed on that server (as well as a few other
extensions).  However, neither of those is invoked in the procedure
which caused the crash; it's straight PL/pgSQL.


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-11 01:22  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Alvaro Herrera @ 2013-03-11 01:22 UTC (permalink / raw)
  To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs

Josh Berkus wrote:
> On 03/08/2013 07:27 PM, Alvaro Herrera wrote:
> > Josh Berkus wrote:
> >> Folks,
> >>
> >> This is one I've never seen before:
> >>
> >> => select generate_master_tables();
> >> WARNING:  AbortTransaction while in COMMIT state
> >> PANIC:  cannot abort transaction 9387287, it was already committed
> > 
> > Anything that causes an ERROR in the final stages of a transaction
> > commit will look like this.  Maybe, for example, something tried to
> > acquire more shared memory for something (serializable xact?) but that
> > was already full because of lock objects.
> 
> Well, is it worth trying to reproduce and diagnose?

IMO it's worth adding enough protections that in these situations you
get regular ERRORs rather than PANICs, assuming the scenario is not too
contrived and the required patches are not too complex.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
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] 7+ messages in thread

* Re: New kind of crash?
@ 2013-03-21 23:05  Josh Berkus <josh@agliodbs.com>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Josh Berkus @ 2013-03-21 23:05 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-bugs

Alvaro,

BTW, we haven't been able to reproduce this crash deliberately, yet.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
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] 7+ messages in thread


end of thread, other threads:[~2013-03-21 23:05 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09 00:27 New kind of crash? Josh Berkus <josh@agliodbs.com>
2013-03-09 03:17 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-03-09 03:27 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-03-10 00:00   ` Josh Berkus <josh@agliodbs.com>
2013-03-11 01:22     ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-03-21 23:05       ` Josh Berkus <josh@agliodbs.com>
2013-03-10 00:03   ` Josh Berkus <josh@agliodbs.com>

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