pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Shut down transaction tracking at startup process exit.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:28  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:28  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:28  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:29  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:29  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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

* pgsql: Shut down transaction tracking at startup process exit.
@ 2021-04-05 17:29  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Fujii Masao @ 2021-04-05 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Shut down transaction tracking at startup process exit.

Maxim Orlov reported that the shutdown of standby server could result in
the following assertion failure. The cause of this issue was that,
when the shutdown caused the startup process to exit, recovery-time
transaction tracking was not shut down even if it's already initialized,
and some locks the tracked transactions were holding could not be released.
At this situation, if other process was invoked and the PGPROC entry that
the startup process used was assigned to it, it found such unreleased locks
and caused the assertion failure, during the initialization of it.

    TRAP: FailedAssertion("SHMQueueEmpty(&(MyProc->myProcLocks[i]))"

This commit fixes this issue by making the startup process shut down
transaction tracking and release all locks, at the exit of it.

Back-patch to all supported branches.

Reported-by: Maxim Orlov
Author: Fujii Masao
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/ad4ce692cc1d89a093b471ab1d969b0b@postgrespro.ru

Branch
------
REL9_6_STABLE

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

Modified Files
--------------
src/backend/postmaster/startup.c  | 19 +++++++++++++++++++
src/backend/storage/ipc/standby.c | 15 +++++++++++++++
2 files changed, 34 insertions(+)



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


end of thread, other threads:[~2021-04-05 17:29 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 17:28 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>
2021-04-05 17:28 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>
2021-04-05 17:28 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>
2021-04-05 17:29 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>
2021-04-05 17:29 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>
2021-04-05 17:29 pgsql: Shut down transaction tracking at startup process exit. Fujii Masao <fujii@postgresql.org>

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