pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Make detach-partition-concurrently-3 less timing-sensitive 2+ messages / 1 participants [nested] [flat]
* pgsql: Make detach-partition-concurrently-3 less timing-sensitive @ 2021-05-25 16:54 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-05-25 16:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make detach-partition-concurrently-3 less timing-sensitive This recently added test has shown to be too sensitive to timing when sending a cancel to a session waiting for a lock. We fix this by running a no-op query in the blocked session immediately after the cancel; this avoids the session that sent the cancel sending another query immediately before the cancel has been reported. Idea by Noah Misch. With that fix, we sometimes see that the cancel error report is shown only relative to the step that is cancelled, instead of together with the step that sends the cancel. To increase the probability that both steps are shown togeter, add a 0.1s sleep to the cancel. In normal conditions this appears sufficient to silence most failures, but we'll see that the slower buildfarm members say about it. Reported-by: Takamichi Osumi <osumi.takamichi@fujitsu.com> Discussion: https://postgr.es/m/OSBPR01MB4888C4ABA361C7E81094AC66ED269@OSBPR01MB4888.jpnprd01.prod.outlook.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5e0b1aeb2dfed4f1eb7ac5154c1573885a70db41 Modified Files -------------- .../expected/detach-partition-concurrently-3.out | 162 ++++++++++++--------- .../specs/detach-partition-concurrently-3.spec | 44 +++--- 2 files changed, 115 insertions(+), 91 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Make detach-partition-concurrently-4 less timing sensitive @ 2021-05-25 23:46 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-05-25 23:46 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make detach-partition-concurrently-4 less timing sensitive Same as 5e0b1aeb2dfe, for the companion test file. This one seems lower probability (only two failures in a month of runs); I was hardly able to reproduce a failure without a patch, so the fact that I was also unable to reproduce one with it doesn't say anything. We'll have to wait for further buildfarm results to see if we need any further adjustments. Discussion: https://postgr.es/m/20210524090712.GA3771394@rfd.leadboat.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/eb43bdbf5104c183412aac0fccf8e515e60d9212 Modified Files -------------- .../expected/detach-partition-concurrently-4.out | 90 ++++++++++++---------- .../specs/detach-partition-concurrently-4.spec | 29 ++++--- 2 files changed, 68 insertions(+), 51 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-05-25 23:46 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-05-25 16:54 pgsql: Make detach-partition-concurrently-3 less timing-sensitive Alvaro Herrera <alvherre@alvh.no-ip.org> 2021-05-25 23:46 pgsql: Make detach-partition-concurrently-4 less timing sensitive Alvaro Herrera <alvherre@alvh.no-ip.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