Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTugy-0006Tu-FA for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2016 17:06:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTugx-0004I8-P8 for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2016 17:06:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTufd-0002kz-Jf for pgsql-hackers@postgresql.org; Thu, 11 Feb 2016 17:04:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTufb-0002ZY-30 for pgsql-hackers@postgresql.org; Thu, 11 Feb 2016 17:04:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1BH4d4i020202; Thu, 11 Feb 2016 12:04:39 -0500 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution. In-reply-to: <14581.1455205343@sss.pgh.pa.us> References: <21023.1455200996@sss.pgh.pa.us> <14581.1455205343@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 11 Feb 2016 10:42:23 -0500" Date: Thu, 11 Feb 2016 12:04:39 -0500 Message-ID: <20201.1455210279@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > No, because the machines that are failing are showing a "" > annotation that your reference output *doesn't* have. I think what is > actually happening is that these machines are seeing the process as > waiting and reporting it, whereas on your machine the backend detects > the deadlock and completes the query (with an error) before > isolationtester realizes that the process is waiting. I confirmed this theory by the expedient of changing the '10ms' setting in the test script to 1ms (which worked) and 100ms (which did not, on the same machine). I've committed an update that adjusts the timeouts to hopefully ensure that isolationtester always sees the query as blocked before the deadlock detector unblocks it; which seems like the behavior we want to test for, anyway. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers