• Tom Lane's avatar
    Still further tweaking of deadlock isolation tests. · d03130d3
    Tom Lane authored
    It turns out that there is a second race condition in the new deadlock-hard
    test: once the deadlock detector fires, it's uncertain whether step s7a8 or
    step s8a1 will report first, because killing s8's transaction unblocks s7.
    So far, s7 has only been seen to report first in CLOBBER_CACHE_ALWAYS
    builds, but it's pretty reproducible there, and in theory it should
    sometimes occur in normal builds too.  If s7 were a bit slower than usual,
    that could also break the test, since the existing expected-file assumes
    that we'll see s7a8 report the first time we check it after s8a1 completes.
    To fix, add a post-lock delay to s7a8.
    d03130d3
deadlock-hard.out 1.11 KB