pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is 3+ messages / 1 participants [nested] [flat]
* pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is @ 2015-10-22 20:45 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-10-22 20:45 UTC (permalink / raw) To: pgsql-committers shm_mq: Fix failure to notice a dead counterparty when nowait is used. The shm_mq mechanism was intended to optionally notice when the process on the other end of the queue fails to attach to the queue. It does this by allowing the user to pass a BackgroundWorkerHandle; if the background worker in question is launched and dies without attaching to the queue, then we know it never will. This logic works OK in blocking mode, but when called with nowait = true we fail to notice that this has happened due to an asymmetry in the logic. Repair. Reported off-list by Rushabh Lathia. Patch by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/b2ccb5f4e6c81305386edb34daf7d1d1e1ee112a Modified Files -------------- src/backend/storage/ipc/shm_mq.c | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is @ 2015-10-22 20:45 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-10-22 20:45 UTC (permalink / raw) To: pgsql-committers shm_mq: Fix failure to notice a dead counterparty when nowait is used. The shm_mq mechanism was intended to optionally notice when the process on the other end of the queue fails to attach to the queue. It does this by allowing the user to pass a BackgroundWorkerHandle; if the background worker in question is launched and dies without attaching to the queue, then we know it never will. This logic works OK in blocking mode, but when called with nowait = true we fail to notice that this has happened due to an asymmetry in the logic. Repair. Reported off-list by Rushabh Lathia. Patch by me. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/87abcb4ebd48f5d8f7244236f8839854c1861537 Modified Files -------------- src/backend/storage/ipc/shm_mq.c | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is @ 2015-10-22 20:45 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2015-10-22 20:45 UTC (permalink / raw) To: pgsql-committers shm_mq: Fix failure to notice a dead counterparty when nowait is used. The shm_mq mechanism was intended to optionally notice when the process on the other end of the queue fails to attach to the queue. It does this by allowing the user to pass a BackgroundWorkerHandle; if the background worker in question is launched and dies without attaching to the queue, then we know it never will. This logic works OK in blocking mode, but when called with nowait = true we fail to notice that this has happened due to an asymmetry in the logic. Repair. Reported off-list by Rushabh Lathia. Patch by me. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ac9a01615c5d45eb08e5b78c3d0155214e0ab498 Modified Files -------------- src/backend/storage/ipc/shm_mq.c | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-10-22 20:45 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-10-22 20:45 pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is Robert Haas <rhaas@postgresql.org> 2015-10-22 20:45 pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is Robert Haas <rhaas@postgresql.org> 2015-10-22 20:45 pgsql: shm_mq: Fix failure to notice a dead counterparty when nowait is Robert Haas <rhaas@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