Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u9QCQ-001bAC-Or for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 15:15:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u9QCO-001iOm-7R for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 15:15:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u9QCN-001iOd-Tz for pgsql-hackers@lists.postgresql.org; Mon, 28 Apr 2025 15:15:13 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u9QCK-0001TO-1d for pgsql-hackers@postgresql.org; Mon, 28 Apr 2025 15:15:12 +0000 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3d81ca1d436so44573225ab.2 for ; Mon, 28 Apr 2025 08:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745853308; x=1746458108; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oSf8U5vEqKxaxplyfg9Xu8YmlChs70y1C5lrtdhZaPo=; b=l0SKNUfeYPJalh2SqtSjqZjMcqwVa7G+V3u3oev88ayz8RRsY4eJ001LOxFhFowIE1 9gu8vIdbEZZdAFTVw087TqptwRMyKu/e76EoAN7TN0GLAljluiiP3nbpRmASf9gohy8a h043nZ3cWFER16fY/BeH5qDfLn4Fi5nLifbPUNW753PesbOhMuEnwEJS3MXseKlGAAn9 zzKmdc4aKm0GFcORlfMxDtf/oLkYoxL7H+YjvfEs9LKujov15pWqK5iNz38VNtgk1c7a pk3Usq+xz3T7iZA2zEdVmJr9FUPRO+cvBA0EytbC4NCL/yzYKTupDDqzEbU7gjeHdN2/ YI4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745853308; x=1746458108; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oSf8U5vEqKxaxplyfg9Xu8YmlChs70y1C5lrtdhZaPo=; b=htHZYKSU2DfoFq5scMfzQpmMtI2c8la2dfsJgtcM5Rbbw3kXB+tCEoBazSPPfvj4em AqYrvZ0BQVN9lIRACwPNYqME+8DN9mLl7Oa18LE7PKex9n3xjqX5njQYd8DqWq+Zejw2 JTG4nd2N8MpOO7UMYKjAGUSjfRPEz+rPEsacC05BPV6qy23nkdhJU007mA423Sq+gNIL xXJnLvJmgo0IgC9PULYJpS0jjPl0mYO4fn7xmFDXAmGeZAPh58Nca/Naj+zs1lOxG9H4 uFg/OuxuUofgHgVG5Gz90VkFeWkpDQpl5h5tuUH6U252qKU5i6klO5QLRstr2aKUwO31 Aosg== X-Forwarded-Encrypted: i=1; AJvYcCWeBKWxRyzofwqptZg/QFsIqdHOqOIyTqjx6iEq+HuGIsG1UA/bBRqBBmz/Yyhe804qwsBVqLYs6Ero4sx/@postgresql.org X-Gm-Message-State: AOJu0YwUUYGKZ/wKClWjSEHF1pWlpSQyiiwptbY91CssBKFuemqQauZQ Rr5l9J84aXSboJ0C6ALy1fSidG/7S/pj3JA+kGOOSh30zf7QEHD2 X-Gm-Gg: ASbGncuStqFc9oWP8rEjTy23W5a2bUi7w7qSTNoF7+/EmpJJlQEieN7SUf1YEUVzvqg qaDgszBimC0b/T8ZUebjc0GKERIWPwtWb6fFMC4DEEIkyC5BXJojvjcvYoA9KufMMPxWYC07XhG OnPGYUffEqkLanbgkvRrduVOMFJHT/ZrDwLEuShcCnZljT2suYDbyJrnQI5LEPgsNyRD6mei0JK UypF6pfviwttO4S5fbneqBc6puH/meeZp95mMvNTu2eSAieRZwdHqIqnSsufKW0riVF6npk6nFe 6Fkw9vEuMTa8nWrAMTTQjSkCUKe1hm53mdBlcLR8+/Y0FCRcP4Sgl9sqedjfSeydZt0RwQ4sWGW ZyMvZw9ETJ8elryK6cAO/aasbth/WE6g= X-Google-Smtp-Source: AGHT+IHxBqbQKDww5khUPiloAV5rndb7xa6CLc4yMJ+9Rxgmze0GkN/CWD5s2tR67BThhtTtbSlNCg== X-Received: by 2002:a05:6e02:170b:b0:3d9:36a8:3d98 with SMTP id e9e14a558f8ab-3d93b3a7cb1mr133204035ab.2.1745853307926; Mon, 28 Apr 2025 08:15:07 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f8249fa372sm2238690173.24.2025.04.28.08.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 08:15:07 -0700 (PDT) Date: Mon, 28 Apr 2025 10:15:05 -0500 From: Nathan Bossart To: Alexander Lakhin Cc: Tom Lane , Robert Haas , Andres Freund , Greg Sabino Mullane , pgsql-hackers@postgresql.org, bruce@momjian.us Subject: Re: optimize file transfer in pg_upgrade Message-ID: References: <7rhxl5nl5cuenm4kzprjhaojo74m2teuwzjffcrdi6bxx6b2wn@orb5h3mteh2y> <712605.1742401713@sss.pgh.pa.us> <7161562f-d00d-41a6-bd8a-d15684d3eaf2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7161562f-d00d-41a6-bd8a-d15684d3eaf2@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Apr 27, 2025 at 05:00:01PM +0300, Alexander Lakhin wrote: > Both happened on Windows, but what's worse is that the failure logs > contain no information on the exact reason. We can see: > #   Failed test 'pg_upgrade with transfer mode --swap: stdout matches' > #   at C:/tools/xmsys64/home/pgrunner/bf/root/HEAD/pgsql/src/bin/pg_upgrade/t/006_transfer_modes.pl line 61. > ... > # Restoring database schemas in the new cluster > # *failure* I see a couple of other pg_upgrade failures on drongo and fairywren that look similar, although these are for different tests: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=drongo&dt=2025-03-10%2019%3A26%3A35 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=fairywren&dt=2025-03-30%2013%3A03%3A05 > Moreover, even when pg_upgrade succeeds, IPC::Run::run inside > command_ok_or_fails_like() returns false, as we can see from a > successful test run: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=fairywren&dt=2025-04-27%2001%3A03%3A06&stg=misc-check > > pgsql.build/testrun/pg_upgrade/006_transfer_modes/log/regress_log_006_transfer_modes > [01:18:38.210](21.036s) ok 1 - pg_upgrade with transfer mode --clone: stdout matches > [01:18:38.211](0.001s) ok 2 - pg_upgrade with transfer mode --clone: stderr matches That's expected for platforms that don't support all of the modes. We verify the output matches a known error message in that case. > So maybe it's worth to adjust the test somehow to have interesting logs > left after a failure? I see some other discussion about failures with similar symptoms [0] [1]. Commit 6f97ef0 seems to have helped with one of the tests, and there is a proposed patch in the latest thread [2] that AFAICT aims to fix the underlying issue. [0] https://postgr.es/m/TYAPR01MB5866AB7FD922CE30A2565B8BF5A8A%40TYAPR01MB5866.jpnprd01.prod.outlook.com [1] https://postgr.es/m/CALDaNm3tjY44HoSwY84%3DXGEbTg0ruVfD4hAMTm%3DTgBqVysH4Qw%40mail.gmail.com [2] https://postgr.es/m/CALDaNm2y%2Bnf-V9tjKwvbPprobZs1t_UrcCpJ0qYD5-KkOUFAyg%40mail.gmail.com -- nathan