• Tom Lane's avatar
    Make new deadlock isolation test more reproducible. · b11d07b6
    Tom Lane authored
    The original formulation of 4c9864b9
    was extremely timing-sensitive, because it arranged for the deadlock
    detector to be running (and possibly unblocking the current query)
    at almost exactly the same time as isolationtester would be probing
    to see if the query is blocked.  The committed expected-file assumed
    that the deadlock detection would finish first, but we see the opposite
    on both fast and slow buildfarm animals.  Adjust the deadlock timeout
    settings to make it predictable that isolationtester *will* see the
    query as waiting before deadlock detection unblocks it.
    
    I used a 5s timeout for the same reasons mentioned in
    a7921f71.
    b11d07b6
deadlock-hard.spec 1.83 KB