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 1oaS6k-0007CJ-Ue for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2022 01:31:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaS6j-0008Fc-St for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2022 01:31:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaS6j-0008FS-H7 for pgsql-hackers@lists.postgresql.org; Tue, 20 Sep 2022 01:31:29 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oaS6g-0003GH-IL for pgsql-hackers@lists.postgresql.org; Tue, 20 Sep 2022 01:31:28 +0000 Received: by mail-io1-xd2f.google.com with SMTP id z191so1051249iof.10 for ; Mon, 19 Sep 2022 18:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=crJphDZyQLcW0Xf0NKdGKmLlHKvwX2jIV+PLnPBtBic=; b=i4ZAWOkttk866AMF0VNKeD03iAR4hpY6mOXSRHDSL+Ty5mBn7Q3VY+RYW798fogQa0 PuZsKefNjgHwmmIAboc+DzCuFjya76GeX0NZI6yfcS3Q+BpTd6TS2SxJuJAvHdH/jnRt 4oJXoL27YsHQXEUSGR/cpOgzkfkkfxYePQH67SvAvQx8pFhThBIVb49pHIgUsjOdlSxD LVLm0FcJXj9kfNPdY8i2K/JubrbcIFsaTG19kHT/3eCpZPWfw5OPsj8rXQrqfKZ4Ennq ZZvIPtRPrlon11HIqc2Hb0zjIr9bEA0Sw1Rv2zGm0cYNMGbaCzsAOSfbgq89uWWP/3d8 7YHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=crJphDZyQLcW0Xf0NKdGKmLlHKvwX2jIV+PLnPBtBic=; b=dXoi+mrtdiMVb8RgSb4o1H8zdV4VlBn93UgvN/UYTsEDk9MZ8hZdUo6k90fuPFMte6 0b5+DV2o7XBudhR6AuBlGlrgSDFo96FiI1cedlZssqp5menUGjeTJcHZl6Wiav0GpXLj 8daX6/9s69fBo3Nphk0X9lXiY/MCppP5m6ZRACG97j9yF3sGHYnAWPOTJA4zTotiCWom sqAGwbhgEPBIb3DXgSNWZO4lP6ST9c4yNc7/ICKmOhN31ULTJuxY+tBqOzQs8jaiSh+/ 5Q2h2sM8qnJRGRNSZ4Y30Q+4H7OX9D1gt7ZovWlNvCQ7QrEcmu5ZMK4jL2DYzEjLn5Q2 7QMw== X-Gm-Message-State: ACrzQf10vOBMo6ImaAkie5U1W2MsPcLpczzorCoG0MhjP2wGnGECp9Kj wiKEkuEXMkb2t69w1ddlf8QnZw== X-Google-Smtp-Source: AMsMyM7sBQyIfRHDdLlexfiIB6mYiAIFO/uR+LGPpO2L33PSGBO3pLG30ukVkhkoR7W8JNtlvuCFCg== X-Received: by 2002:a05:6638:3047:b0:341:de2b:e489 with SMTP id u7-20020a056638304700b00341de2be489mr9694661jak.273.1663637483755; Mon, 19 Sep 2022 18:31:23 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p10-20020a92740a000000b002e8ea827aafsm123881ilc.74.2022.09.19.18.31.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2022 18:31:23 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 895DE800BCE; Mon, 19 Sep 2022 20:31:22 -0500 (CDT) Date: Mon, 19 Sep 2022 20:31:22 -0500 From: Justin Pryzby To: Andres Freund Cc: Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: pg_upgrade test failure Message-ID: <20220920013122.GA31833@telsasoft.com> References: <20220919213217.ptqfdlcc5idk5xup@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220919213217.ptqfdlcc5idk5xup@awork3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Sep 19, 2022 at 02:32:17PM -0700, Andres Freund wrote: > Hi, > > After my last rebase of the meson tree I encountered the following test > failure: > > https://cirrus-ci.com/task/5532444261613568 > > [20:23:04.171] ------------------------------------- 8< ------------------------------------- > [20:23:04.171] stderr: > [20:23:04.171] # Failed test 'pg_upgrade_output.d/ not removed after pg_upgrade --check success' > [20:23:04.171] # at C:/cirrus/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 249. > [20:23:04.171] # Failed test 'pg_upgrade_output.d/ removed after pg_upgrade success' > [20:23:04.171] # at C:/cirrus/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 261. > [20:23:04.171] # Looks like you failed 2 tests of 13. > > regress_log: > https://api.cirrus-ci.com/v1/artifact/task/5532444261613568/testrun/build/testrun/pg_upgrade/002_pg_upgrade/log/regress_log_002_pg_upgrade > > The pg_upgrade output contains these potentially relevant warnings: > > ... > *Clusters are compatible* > pg_upgrade: warning: could not remove file or directory "C:/cirrus/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata/pg_upgrade_output.d/20220919T201958.511/log": Directory not empty > pg_upgrade: warning: could not remove file or directory "C:/cirrus/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata/pg_upgrade_output.d/20220919T201958.511": Directory not empty > ... It looks like it failed to remove a *.log file under windows, which caused rmtree to fail. src/bin/pg_upgrade/pg_upgrade.h-#define DB_DUMP_LOG_FILE_MASK "pg_upgrade_dump_%u.log" src/bin/pg_upgrade/pg_upgrade.h-#define SERVER_LOG_FILE "pg_upgrade_server.log" src/bin/pg_upgrade/pg_upgrade.h-#define UTILITY_LOG_FILE "pg_upgrade_utility.log" src/bin/pg_upgrade/pg_upgrade.h:#define INTERNAL_LOG_FILE "pg_upgrade_internal.log" ee5353abb only changed .txt files used for errors so can't be the cause, but the original commit 38bfae3 might be related. I suspect that rmtree() was looping in pgunlink(), and got ENOENT, so didn't warn about the file itself, but then failed one moment later in rmdir. -- Justin