Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8vcI-0001jm-P5 for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 19:50:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8vcI-0006AR-1A for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 19:50:34 +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) (envelope-from ) id 1a8vcH-00068C-4z for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 19:50:33 +0000 Received: from mout.gmx.net ([212.227.15.15]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1a8vcE-0000Hs-BO for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 19:50:31 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MNYxW-1a7Hj72k5y-007A3O for ; Tue, 15 Dec 2015 20:50:27 +0100 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id DC505211AE for ; Tue, 15 Dec 2015 14:50:25 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 15 Dec 2015 14:50:25 -0500 X-Sasl-enc: WHtuUMWpzK2SXbzDwQQZrz5QAHe9OgN1zwR0Il/K6aDh 1450209025 Received: from [192.168.110.199] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 80039C016FA; Tue, 15 Dec 2015 14:50:25 -0500 (EST) Subject: Re: pg_rewind exiting with error code 1 when source and target are on the same timeline To: Michael Paquier References: <5627E2A4.4000402@gmx.net> <566106F7.4000404@gmx.net> <566B82CF.6070809@gmx.net> Cc: PostgreSQL mailing lists , Heikki Linnakangas From: Peter Eisentraut Message-ID: <56706F01.9040202@gmx.net> Date: Tue, 15 Dec 2015 14:50:25 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ufA9x2/7LgH4UBZKP9buhXn06N/AcXq9oGkxupLns2Oi5PSsAPN TdJ1mBMeoo9AxR2LYcuwbYnWh9oiDIT730oIGtFNnh9DPWqqx7s2wryYS9UcTJby8ctkTb1 FooFZqVE8CEIUlY6CSZMhlcrDwUHQIF3id7vkpv1DgK1jUWKALSxsDNuHEt1gDIvMJTqG5X hE7xwg5P3DqvNjEKd+K1Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:HkR7Y+4tIjU=:Koj77DrII97fkR8O/BRtsZ 2B0t2gOPJDY1U0xG+ojjNfOuporIN7Z/zcI3GuLzwwmYDovmr6QMSA54fWbThnwhSy5H9IAZn GLYGc9cxAN6aLVW0u+9YfQxKoA/DcKmKDa7XC1J7igRd64h+yirGPH+0NFGgQpPHfy5poiHhs OSZkCKi2AXUEVicL+Emaum/SYicXzyYzYhgQ9MvRN8MJy9OOdRkVQCUwVg65UlJ0vDF2xoU44 Ft2aFLBa+4NDsngMcXForY7et3r/Pvpm9Wl8fptKtr/gfXZ51cofDcc07A2K7HlHzjSqt82LW XHTr5h4ONXDgpiWVAPe6VKIynXr2HZwcjFCMx2xq2aadctcnWvHW3n9WaoTKl49wnkeYeJZWO iDXu4QWq7W0MQepJDDnqf2WmKTDEKoOZn0/3ehQR/SAy05FJ9KZsHV/xt35Ao65ISmrkOO+TD XmDZbasE2htHmF5O3Ak+f8SYLapyfNz6+19pZbB4TFqgDHzjE6lFxd7hgcO9kkG6Jg9WCvr1x m3bKmNO+lITdHNnq3+PQzS7Owl4mDFn+9Zt6DpVSMo3lKtXqgrsUPoDYkYLtItfRjt68zxKhV GaaIh2xvPST4a11QmoxQyjy3TQhzYQgYXNXlhQ03gjHmQ1G5RLk6xh6I2d3PGlVxYBBBW/wtf V3+8AKUbhiCLU7oE+2aKQmzeRh1QjwvtlUUeoKilEVvMY9Ohdr/oH1ZQFQ4qcRlgb0uQugOly LsEuoXuBtvELhx3KwAGOWbaKBwVvn5l0hVljUeAYARJcwEIajAq+CC+73dpuio0b180tySWD0 d8PKlka X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/12/15 6:08 AM, Michael Paquier wrote: >> I committed this to master. It's also on the 9.5 open item list, but if >> I backport it then the tests don't pass. Still looking. Not sure yet >> if this is because of code changes in pg_rewind master or test >> infrastructure changes in master. > > The failure is as follows: > source data directory must be shut down cleanly > Failure, exiting > not ok 1 - pg_rewind local > > And is caused by the fact that master checks that the source node has > been stopped with DB_SHUTDOWNED and not DB_SHUTDOWNED_IN_RECOVERY. It seems that the/a problem is actually that the test setup tries a rewind using the standby as the source and the standby also as the target. The source should be the primary, and then it doesn't matter whether we allow DB_SHUTDOWNED_IN_RECOVERY. Need to check that test setup. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs