Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed - Mailing list pgsql-bugs

From r.zharkov@postgrespro.ru
Subject Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed
Date
Msg-id 0ebe78ca6c44528cffdb8a0f466abc4d@postgrespro.ru
Whole thread Raw
In response to Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed  (Andres Freund <andres@anarazel.de>)
List pgsql-bugs
On 2019-04-03 00:11, Andres Freund wrote:
> Hi,
> 
> On 2019-04-03 00:04:15 +0700, r.zharkov@postgrespro.ru wrote:
>> pgbench connects to the database through the connection pooller called
>> Odyssey.
>> We use pool of 16 or 32 backends.
>> We run four series of pgbench tests with different connections count ( 
>> 100,
>> 150, 200, ... , 1000 )
>> Three series with pool size 16 runs normally.
>> But fourth series fails with 200-300 connections. It took about five 
>> hours
>> to reproduce the error this time.
>> 
>> Here is the little piece of the pgbench log:
>> 
>> Bench start
>> Tue Apr  2 14:43:12 UTC 2019
>> Timestamp 1554216192
>> transaction type: multiple scripts
>> scaling factor: 1
> 
> Is this the actual scaling factor? Did you create the pgbench database
> with foreign keys?
> 
> Greetings,
> 
> Andres Freund

Hi,
Yes, 1 is the actual scaling factor.

My script to create database:
/db/zharkov/.vanila/bin/pg_ctl -D /db/zharkov/vanila -l 
/db/zharkov/vanila/log.log stop
rm -rf /db/zharkov/vanila/*
/db/zharkov/.vanila/bin/initdb -D /db/zharkov/vanila --data-checksums
#/db/zharkov/.vanila/bin/initdb -D /db/zharkov/vanila
cp postgresql.conf /db/zharkov/vanila/
ulimit -c unlimited
/db/zharkov/.vanila/bin/pg_ctl -D /db/zharkov/vanila -c -l 
/db/zharkov/vanila/log.log start
/db/zharkov/.vanila/bin/psql postgres -c 'create database test'
/db/zharkov/.vanila/bin/psql test -c 'create extension pg_prewarm;'
/db/zharkov/.vanila/bin/pgbench -i test -s 1
#/db/zharkov/.vanila/bin/pgbench -i test -s 1000
/db/zharkov/.vanila/bin/psql test -c "select pg_prewarm( 
'pgbench_accounts' );"
/db/zharkov/.vanila/bin/psql test -c "select pg_prewarm( 
'pgbench_branches' );"
/db/zharkov/.vanila/bin/psql test -c "select pg_prewarm( 
'pgbench_history' );"
/db/zharkov/.vanila/bin/psql test -c "select pg_prewarm( 
'pgbench_tellers' );"

The dump of the server settings is in the attachment.

-- 
regards,

Roman Zharkov
Attachment

pgsql-bugs by date:

Previous
From: r.zharkov@postgrespro.ru
Date:
Subject: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed