Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMR98-0003LV-Po for pgsql-committers@arkaria.postgresql.org; Wed, 06 Dec 2017 04:17:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMR98-0007EH-AT for pgsql-committers@arkaria.postgresql.org; Wed, 06 Dec 2017 04:17:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMR97-0007E7-QJ for pgsql-committers@lists.postgresql.org; Wed, 06 Dec 2017 04:17:22 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMR94-0003Y0-TI; Wed, 06 Dec 2017 04:17:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 11A1E20A5D; Tue, 5 Dec 2017 23:17:17 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 05 Dec 2017 23:17:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=3HBEfeg9ObCz2EcCfI/ytID1cdTU7 sMBYft01V12wNA=; b=adA3YDhc1sIUNM+NtZn+r0J/xRfpHQcAwHdQx1g8F6rEK eYpt/f5AK1WFFRAmc9hSSKwpCgj6ZNK+OZ7gWKlSeCptGunDrSyoM6rnmDX14FNP eWwR8QatKbtZ1n9RhgpwlOnsdZM3S1IJZxna1KdJY7WrA8sSqlnE4I+l+xegSyrZ JLX9+hOx31ISFsYL5tncivPfWQwpCJOEhKv1Nb95Q2isfX8i6ke8MbY9yOazSIma hnm7iNX+TPBDX3SY3Ns1bmnvSS/aLMjyU1UPRmFoEYMC6gpQxMkQg7/Xkcv6r63R mdqVzNlePWmFqys9SPZpv/SKJPEElu08JmcX4okkw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id BE8F07E4AA; Tue, 5 Dec 2017 23:17:16 -0500 (EST) Date: Tue, 5 Dec 2017 20:17:15 -0800 From: Andres Freund To: Tom Lane Cc: Robert Haas , pgsql-committers@postgresql.org Subject: Re: pgsql: Support Parallel Append plan nodes. Message-ID: <20171206041715.e2lhcd3d3xftner2@alap3.anarazel.de> References: <17868.1512519318@sss.pgh.pa.us> <2090.1512532919@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2090.1512532919@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2017-12-05 23:01:59 -0500, Tom Lane wrote: > I conclude that the reason we don't see the crash except on the slowest > buildfarm critters is that on most machines the leader process manages > to finish off all the subplans before any of the workers get as far as > doing something. This doesn't give me a warm fuzzy feeling about how > much testing this patch has gotten. If that's the case, it should be reproducible on fast machines if one sets parallel_leader_participation = off during an installcheck. Which indeed crashes here, albeit on a heavily modified tree: #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007f4c05afb19a in __GI_abort () at abort.c:89 #2 0x000055d89651e83a in ExceptionalCondition (conditionName=0x55d8966edef8 "!(append->first_partial_plan < node->as_nplans)", errorType=0x55d8966edd86 "FailedAssertion", fileName=0x55d8966eddd8 "/home/andres/src/postgresql/src/backend/executor/nodeAppend.c", lineNumber=503) at /home/andres/src/postgresql/src/backend/utils/error/assert.c:54 #3 0x000055d8961eab63 in choose_next_subplan_for_worker (node=0x55d8974535a0) at /home/andres/src/postgresql/src/backend/executor/nodeAppend.c:503 #4 0x000055d8961ea47b in ExecAppend (pstate=0x55d8974535a0) at /home/andres/src/postgresql/src/backend/executor/nodeAppend.c:216 #5 0x000055d8961d6c55 in ExecProcNode (node=0x55d8974535a0) at /home/andres/src/postgresql/src/include/executor/executor.h:239 Greetings, Andres Freund