Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqImK-0001GK-18 for pgsql-general@arkaria.postgresql.org; Thu, 16 Aug 2018 13:57:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqImI-00082a-Fu for pgsql-general@arkaria.postgresql.org; Thu, 16 Aug 2018 13:57:30 +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.89) (envelope-from ) id 1fqImI-00082T-8K for pgsql-general@lists.postgresql.org; Thu, 16 Aug 2018 13:57:30 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqImA-00020G-VG for pgsql-general@lists.postgresql.org; Thu, 16 Aug 2018 13:57:29 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D4CAA20B78; Thu, 16 Aug 2018 09:57:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 16 Aug 2018 09:57:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=1dWQj0HVe/nREnRvtzAPIFZKYrYr5 1RTo0MTu0k/aeU=; b=E+xGSRKd1eS0NcuNqCA7l3TXAlg+stMUnpY0mxCFhA/GE o7iQf7KGzM7R06ARi8jABMnJUyGSCJg3y5mUjgzGhZkcnThogjwTW1LZ8dX5bhqm Yje44LhJ+Ed2xzRZxLd57fgL3RD1Tq+sq9ZDWNETXBA3f59xvctG37wbIpQ6WLAM Wu0saTS1EZVF4QupcRA20oe68bQiX7K0qwGGh63H5XUTMhzo02ussWUmZvhVEzNV 1lya18fg2Fw5QgugIhXv2Gn5IJZmIsib7FUODcFdDqYUPUnEhF6VXVm5+RvLNi6T FGZHfIF4j00/UVvRXZ9NTYlReYf3bFIRY1mTzuQBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1dWQj0 HVe/nREnRvtzAPIFZKYrYr51RTo0MTu0k/aeU=; b=Sqo9Pga7+fXI5Mwwgne+Ls jez70Sg9M3oE8mEOQIMebrVo5nwjsFevS/7cegng2p3J+yoR6o8RTdANu8d1AOmL JgNLizKnb/wMg23hANQC+gj2T+MhSJcVbkXKSnmLr+pZDvui0P/4f+bpJNBOt/QA w5Cu0Aj1PEy5H3YWXI4077AQLlgDpZV+QnEs+fqHmVo1EkhvkFiXybVMjL1TdHI7 motlXxl8zhzmAwx4RioAY71F3A9Tz4NzFx/bhmtNMXUyT2t4BTk6Ka1KVQvS0/Iw JZIG9Y7fLbR+J4nPCFJsWEilAZVHOiyj+qskvE2jT9TMPLJYE7Rf7O2CkU7S3zVQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id E5B65E4626; Thu, 16 Aug 2018 09:57:19 -0400 (EDT) Subject: Re: During promotion, new master tries to archive same segment twice To: Phil Endecott , pgsql-general@lists.postgresql.org References: <5e8344fd-e736-9439-9a10-eb8838e51c03@aklaver.com> <1534409295072@dmwebmail.dmwebmail.chezphil.org> From: Adrian Klaver Message-ID: Date: Thu, 16 Aug 2018 06:57:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1534409295072@dmwebmail.dmwebmail.chezphil.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/16/2018 01:48 AM, Phil Endecott wrote: > Adrian Klaver wrote: >> On 08/15/2018 01:25 PM, Phil Endecott wrote: >>> Dear Experts, >>> >> The above is not clear to me. My best guess: >> > It's not part of the error for the archive command; it's just the > next thing in the log file.  Y is (1) trying write WAL segment > E8 to the Y-to-Z archive and failing because it is already there and > (2) trying to read WAL segment E9 from the X-to-Y archive and failing > because it doesn't exist (and never will).  (1) is the problem, (2) is > expected. Hmm, still not sure why they are both showing up in the same LOG: entry as the entry was for the failure of the archive_command. What is archive_mode set to on Y? -- Adrian Klaver adrian.klaver@aklaver.com