Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dugwN-00072P-Lr for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2017 15:29:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dugwN-0000GN-8e for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2017 15:29:31 +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_2) (envelope-from ) id 1dugwM-0000Fx-Fh for pgsql-hackers@postgresql.org; Wed, 20 Sep 2017 15:29:30 +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_2) (envelope-from ) id 1dugwJ-0006yZ-Cu for pgsql-hackers@postgresql.org; Wed, 20 Sep 2017 15:29:29 +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 v8KFTL54004253; Wed, 20 Sep 2017 11:29:21 -0400 From: Tom Lane To: Michael Paquier cc: Robert Haas , Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: src/test/subscription/t/005_encoding.pl is broken In-reply-to: References: <27032.1505749806@sss.pgh.pa.us> <20170918175829.dyujv4leisqhein4@alap3.anarazel.de> <6768.1505835210@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 20 Sep 2017 14:32:56 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4251.1505921361.1@sss.pgh.pa.us> Date: Wed, 20 Sep 2017 11:29:21 -0400 Message-ID: <4252.1505921361@sss.pgh.pa.us> 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 Michael Paquier writes: > On Wed, Sep 20, 2017 at 12:33 AM, Tom Lane wrote: >> That would indicate that something isn't ever retrying the worker >> start; but if that's the case, how is it that we get through the >> other subscription tests with my random-failure patch in place? > I have been able to dig into this issue further, and the problem is > indeed in the wait logic of 005_encoding.pl. It is important to wait > for the initial sync of the subscriber to happen. There is no need to > incorporate the additional wait query in wait_for_caught_up() as well. > Please see the attached which fixes the stability problems for me even > after forcing failures in launcher.c. Ah, that makes sense. Pushed. 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