Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lriR5-0003Or-5m for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Jun 2021 14:47:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lriR3-0004gK-3t for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Jun 2021 14:47:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lriR2-0004gC-SZ for pgsql-hackers@lists.postgresql.org; Fri, 11 Jun 2021 14:47:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lriR0-0002AY-S7 for pgsql-hackers@lists.postgresql.org; Fri, 11 Jun 2021 14:46:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15BEkjEu1880686; Fri, 11 Jun 2021 10:46:45 -0400 From: Tom Lane To: Dilip Kumar cc: Andrew Dunstan , Kyotaro Horiguchi , Robert Haas , Heikki Linnakangas , PostgreSQL Hackers Subject: Re: Race condition in recovery? In-reply-to: References: <20210611.104036.2233408362728572267.horikyota.ntt@gmail.com> <1832766.1623376398@sss.pgh.pa.us> <20210611.151459.1951886846697638472.horikyota.ntt@gmail.com> Comments: In-reply-to Dilip Kumar message dated "Fri, 11 Jun 2021 15:19:15 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1880684.1623422805.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 11 Jun 2021 10:46:45 -0400 Message-ID: <1880685.1623422805@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dilip Kumar writes: > On Fri, Jun 11, 2021 at 11:45 AM Kyotaro Horiguchi > wrote: >>> =3D=3D~_~=3D=3D=3D-=3D-=3D=3D=3D~_~=3D=3D pgsql.build/src/test/recover= y/tmp_check/log/025_stuck_on_old_timeline_primary.log =3D=3D~_~=3D=3D=3D-=3D= -=3D=3D=3D~_~=3D=3D >>> ... >>> The system cannot find the path specified. >>> 2021-06-10 22:56:17.754 EDT [60c2d0cf.54c:1] LOG: archive command fai= led with exit code 1 >>> 2021-06-10 22:56:17.754 EDT [60c2d0cf.54c:2] DETAIL: The failed archi= ve command was: /usr/bin/perl "/home/pgrunner/bf/root/HEAD/pgsql/src/test/= recovery/t/cp_history_files" "pg_wal\\000000010000000000000001" "/home/pgr= unner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/t_025_stuck_on_= old_timeline_primary_data/archives/000000010000000000000001" > Wal file copying will not create a problem for us, but I noticed that > it is failing in copying the history files as well and that is > creating a problem. I think jacana uses msys[2?], so this likely indicates a problem in path sanitization for the archive command. Andrew, any advice? regards, tom lane