pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix rare deadlock failure in create_am regression test.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b2fcaed66a4aa88331b375409ef208b12f97c144

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/afec6ba0bae0258835b81fcc0eeed3ff9c455427

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/44f4986dd96bca9d847ccde9ee9428bd9901810b

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/43b6f3ed8b135d8452e820e6489d90bd86c4ef4e

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/aa4eeb38f3aa3e4ebde4abb6edc79dd530ecda79

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix rare deadlock failure in create_am regression test.
@ 2020-09-04 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2020-09-04 16:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix rare deadlock failure in create_am regression test.

The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index.  While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure.  This is pretty rare but we see it in the buildfarm from
time to time.

To fix, acquire a lock on fast_emp4000 before issuing the DROP.

Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.

Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d54f99e41541de848a6ca53b3ec060f461e9ab71

Modified Files
--------------
src/test/regress/expected/create_am.out | 5 +++++
src/test/regress/sql/create_am.sql      | 5 +++++
2 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-09-04 16:40 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. Tom Lane <tgl@sss.pgh.pa.us>
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. Tom Lane <tgl@sss.pgh.pa.us>
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. Tom Lane <tgl@sss.pgh.pa.us>
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. Tom Lane <tgl@sss.pgh.pa.us>
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. Tom Lane <tgl@sss.pgh.pa.us>
2020-09-04 16:40 pgsql: Fix rare deadlock failure in create_am regression test. 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