aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-05-25 12:53:29 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-05-25 12:53:57 -0400
commit5e0b1aeb2dfed4f1eb7ac5154c1573885a70db41 (patch)
tree34bba16e11e7f56a2c8a1fa2e8c7688d4a640aa7 /src/tutorial/syscat.source
parent8673a37c85fef00dd5b9c04197538142bec10542 (diff)
downloadpostgresql-5e0b1aeb2dfed4f1eb7ac5154c1573885a70db41.tar.gz
postgresql-5e0b1aeb2dfed4f1eb7ac5154c1573885a70db41.zip
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
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions