Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aaRrx-0001DG-5q for pgsql-committers@arkaria.postgresql.org; Mon, 29 Feb 2016 17:44:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aaRrw-0004SA-Nw for pgsql-committers@arkaria.postgresql.org; Mon, 29 Feb 2016 17:44:28 +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 1aaRrw-0004Ry-Ad for pgsql-committers@postgresql.org; Mon, 29 Feb 2016 17:44:28 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aaRrn-0005ZQ-IF for pgsql-committers@postgresql.org; Mon, 29 Feb 2016 17:44:27 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.67.168]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 8417B401465; Mon, 29 Feb 2016 09:44:11 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 08C9A4EB; Mon, 29 Feb 2016 14:44:06 -0300 (CLT) Date: Mon, 29 Feb 2016 14:44:06 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add isolationtester spec for old heapam.c bug Message-ID: <20160229174405.GA282394@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <14847.1456765616@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Tom Lane wrote: > I wrote: > > Alvaro Herrera writes: > >> Add isolationtester spec for old heapam.c bug > > > Hmmm .... > > > http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=spoonbill&dt=2016-02-27%2000%3A00%3A06 > > > This failure looks a lot like the timing-related problems I was chasing > > last week with deadlock-hard on the CLOBBER_CACHE_ALWAYS critters. > > spoonbill isn't CLOBBER_CACHE_ALWAYS, but it uses some weird malloc debug > > stuff that slows it down by similar orders of magnitude. You seem to need > > to think about how to make this test less timing-dependent. > > The plot thickens: > > http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=guaibasaurus&dt=2016-02-29%2016%3A17%3A01 > > guaibasaurus is not a particularly slow machine, and it's not using any > special build flags AFAICT. So I'm not sure what to make of this case, > except that it proves the timing problem can manifest on normal builds. Hmm, I suppose I could fix this by using three different advisory locks rather than a single one. (My assumption is that the timing dependency is the order in which the backends are awakened when the advisory lock is released.) I would release the locks one by one rather than all together. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers