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 1oY06w-0005X3-Qi for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:13:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oY06v-0006Y4-N2 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:13:33 +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 1oY06u-0006Xv-1d for pgsql-hackers@lists.postgresql.org; Tue, 13 Sep 2022 07:13:33 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY06q-0000uc-EE for pgsql-hackers@lists.postgresql.org; Tue, 13 Sep 2022 07:13:31 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B874332008FC; Tue, 13 Sep 2022 03:13:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 13 Sep 2022 03:13:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1663053206; x=1663139606; bh=eMqdANJLof uRJ2T8MJfMs+j5Mc0FfHiV/1IRjgOuMTE=; b=c0/EUqtlzs1LZxInhV1ZBUhT6p lRkIfxKm32dPHugyOHuD+Uh5jbHiFpqwUH3epjA30nOw58qnKIJ6pS2kbJvX2hp5 rOhPbocUUWgFZAYNp85KzakZLcyfBDzVYw2RaJIwgQilFlfgkqS9XlfgW2rDsH5x a6A8fp6jQDkTHr/HWCL6riZ3hpES/33HHhaj+78BxP+7Vd8E14IfSRdn3+k/ojUi +S/YNZMY3gRLdNX9MhpXVaWgGYs5/r0vyMaFODPWVz1EqEkHC9HKSsbMFrgyqGon 0FsojwR53pCHQ+lkDrnC0jtLBAi7H3tj/RE5rAsP195ABcTYfSWE2/wPq9pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663053206; x=1663139606; bh=eMqdANJLofuRJ2T8MJfMs+j5Mc0F fHiV/1IRjgOuMTE=; b=l9szuuJiuVRNqZfa0LH62U9oKV+8xOfgmhVwhqbDbxvs hfxLZ7GI3EdyLuOe57cuqIw594yxnK9zR54GptdfjNKWo+MSPvTotgy1mHPevrS6 s7GSvarLkLJoPh/UBHY22oxEhaJ7Ts+mVyPrfyXh0wQY6fEGm7mCrTLKP4cy0eOY BBGKr7A4Ow+qpbkD+eSJyvZrUzGLh7fKDJYbDrGcC7WOaQg2fNwTvHViGlkDRnSM g6vsT9U2dqvf7OCOdnPDS4jXIr4AcvkFHhfzaUKQuA7Qa3Yokp/wgb/xwoFDM1CK /UdQyZBT/Qdat5bC4WJJztK8+tFzpHOj8fGxl1EBvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedufedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepff fhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgr qhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtth gvrhhnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedv jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmih gthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 03:13:24 -0400 (EDT) Date: Tue, 13 Sep 2022 16:13:20 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pg_basebackup's --gzip switch misbehaves Message-ID: References: <1400032.1662217889@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1P5M3ocjGB91Bnbe" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1P5M3ocjGB91Bnbe Content-Type: multipart/mixed; boundary="4OiyN3vaaKGonkuT" Content-Disposition: inline --4OiyN3vaaKGonkuT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Sep 04, 2022 at 02:20:52PM +0900, Michael Paquier wrote: > ffd5365 has missed that wal_compress_level should be set to > Z_DEFAULT_COMPRESSION if there is nothing set in the compression > spec for a zlib build. pg_receivewal.c enforces that already. So, I have looked at this one. And it seems to me that the confusion comes down to the existence of PG_COMPRESSION_OPTION_LEVEL. I have considered a couple of approaches here, like introducing an extra routine in compression.c to assign a default compression level, but my conclusion is at the end simpler: we always finish by setting up a level even if the caller wants nothing, in which can we can just use each library's default. And lz4, zstd and zlib are able to handle the case where a default is given down to their internal routines just fine. Attached is the patch I am finishing with, consisting of: - the removal of PG_COMPRESSION_OPTION_LEVEL. - assigning a default compression level when nothing is specified in the spec. - a couple of complifications in pg_receivewal, pg_basebackup and the backend code as there is no need to worry about the compression level. A nice effect of this approach is that we can centralize the checks on lz4, zstd and zlib when a build does not support any of these options, as well as centralize the place where the default compression levels are set. This passes all the regression tests, and it fixes the issue reported. (Note that I have yet to run tests with all the libraries disabled in ./configure.) Thoughts? -- Michael --4OiyN3vaaKGonkuT Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Simplify-compression-level-handling-in-compression-s.patch" Content-Transfer-Encoding: quoted-printable =46rom 8752cb283d65e40fc4096f84d99bcb93d97c59bc Mon Sep 17 00:00:00 2001 =46rom: Michael Paquier Date: Tue, 13 Sep 2022 16:06:29 +0900 Subject: [PATCH] Simplify compression level handling in compression specifications --- src/include/common/compression.h | 3 +- src/backend/backup/basebackup_gzip.c | 10 +- src/backend/backup/basebackup_lz4.c | 9 +- src/backend/backup/basebackup_zstd.c | 11 +- src/common/compression.c | 105 +++++++++++++++---- src/bin/pg_basebackup/bbstreamer_gzip.c | 4 +- src/bin/pg_basebackup/bbstreamer_lz4.c | 3 +- src/bin/pg_basebackup/bbstreamer_zstd.c | 13 +-- src/bin/pg_basebackup/pg_basebackup.c | 19 +--- src/bin/pg_basebackup/pg_receivewal.c | 35 +------ src/bin/pg_basebackup/t/010_pg_basebackup.pl | 3 - 11 files changed, 107 insertions(+), 108 deletions(-) diff --git a/src/include/common/compression.h b/src/include/common/compress= ion.h index 436b48104e..5d680058ed 100644 --- a/src/include/common/compression.h +++ b/src/include/common/compression.h @@ -22,8 +22,7 @@ typedef enum pg_compress_algorithm PG_COMPRESSION_ZSTD } pg_compress_algorithm; =20 -#define PG_COMPRESSION_OPTION_LEVEL (1 << 0) -#define PG_COMPRESSION_OPTION_WORKERS (1 << 1) +#define PG_COMPRESSION_OPTION_WORKERS (1 << 0) =20 typedef struct pg_compress_specification { diff --git a/src/backend/backup/basebackup_gzip.c b/src/backend/backup/base= backup_gzip.c index a965866ff2..1ec42791f1 100644 --- a/src/backend/backup/basebackup_gzip.c +++ b/src/backend/backup/basebackup_gzip.c @@ -72,13 +72,9 @@ bbsink_gzip_new(bbsink *next, pg_compress_specification = *compress) =20 Assert(next !=3D NULL); =20 - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) =3D=3D 0) - compresslevel =3D Z_DEFAULT_COMPRESSION; - else - { - compresslevel =3D compress->level; - Assert(compresslevel >=3D 1 && compresslevel <=3D 9); - } + compresslevel =3D compress->level; + Assert((compresslevel >=3D 1 && compresslevel <=3D 9) || + compresslevel =3D=3D Z_DEFAULT_COMPRESSION); =20 sink =3D palloc0(sizeof(bbsink_gzip)); *((const bbsink_ops **) &sink->base.bbs_ops) =3D &bbsink_gzip_ops; diff --git a/src/backend/backup/basebackup_lz4.c b/src/backend/backup/baseb= ackup_lz4.c index d919e3dec7..986272ab9a 100644 --- a/src/backend/backup/basebackup_lz4.c +++ b/src/backend/backup/basebackup_lz4.c @@ -72,13 +72,8 @@ bbsink_lz4_new(bbsink *next, pg_compress_specification *= compress) =20 Assert(next !=3D NULL); =20 - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) =3D=3D 0) - compresslevel =3D 0; - else - { - compresslevel =3D compress->level; - Assert(compresslevel >=3D 1 && compresslevel <=3D 12); - } + compresslevel =3D compress->level; + Assert(compresslevel >=3D 0 && compresslevel <=3D 12); =20 sink =3D palloc0(sizeof(bbsink_lz4)); *((const bbsink_ops **) &sink->base.bbs_ops) =3D &bbsink_lz4_ops; diff --git a/src/backend/backup/basebackup_zstd.c b/src/backend/backup/base= backup_zstd.c index 865067f8dc..409bf88101 100644 --- a/src/backend/backup/basebackup_zstd.c +++ b/src/backend/backup/basebackup_zstd.c @@ -96,14 +96,11 @@ bbsink_zstd_begin_backup(bbsink *sink) if (!mysink->cctx) elog(ERROR, "could not create zstd compression context"); =20 - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0) - { - ret =3D ZSTD_CCtx_setParameter(mysink->cctx, ZSTD_c_compressionLevel, + ret =3D ZSTD_CCtx_setParameter(mysink->cctx, ZSTD_c_compressionLevel, compress->level); - if (ZSTD_isError(ret)) - elog(ERROR, "could not set zstd compression level to %d: %s", - compress->level, ZSTD_getErrorName(ret)); - } + if (ZSTD_isError(ret)) + elog(ERROR, "could not set zstd compression level to %d: %s", + compress->level, ZSTD_getErrorName(ret)); =20 if ((compress->options & PG_COMPRESSION_OPTION_WORKERS) !=3D 0) { diff --git a/src/common/compression.c b/src/common/compression.c index da3c291c0f..ac26287d54 100644 --- a/src/common/compression.c +++ b/src/common/compression.c @@ -27,6 +27,13 @@ #include "postgres_fe.h" #endif =20 +#ifdef USE_ZSTD +#include +#endif +#ifdef HAVE_LIBZ +#include +#endif + #include "common/compression.h" =20 static int expect_integer_value(char *keyword, char *value, @@ -88,6 +95,9 @@ get_compress_algorithm_name(pg_compress_algorithm algorit= hm) * Note, however, even if there's no parse error, the string might not make * sense: e.g. for gzip, level=3D12 is not sensible, but it does parse OK. * + * The compression level is assigned by default if not directly specified + * by the specification. + * * Use validate_compress_specification() to find out whether a compression * specification is semantically sensible. */ @@ -101,9 +111,46 @@ parse_compress_specification(pg_compress_algorithm alg= orithm, char *specificatio /* Initial setup of result object. */ result->algorithm =3D algorithm; result->options =3D 0; - result->level =3D -1; result->parse_error =3D NULL; =20 + /* + * Assign a default level depending on the compression method. This may + * be enforced later. + */ + switch (result->algorithm) + { + case PG_COMPRESSION_NONE: + result->level =3D 0; + break; + case PG_COMPRESSION_LZ4: +#ifdef USE_LZ4 + result->level =3D 0; /* fast compression mode */ +#else + result->parse_error =3D + psprintf(_("this build does not support compression with %s"), + "LZ4"); +#endif + break; + case PG_COMPRESSION_ZSTD: +#ifdef USE_ZSTD + result->level =3D ZSTD_CLEVEL_DEFAULT; +#else + result->parse_error =3D + psprintf(_("this build does not support compression with %s"), + "ZSTD"); +#endif + break; + case PG_COMPRESSION_GZIP: +#ifdef HAVE_LIBZ + result->level =3D Z_DEFAULT_COMPRESSION; +#else + result->parse_error =3D + psprintf(_("this build does not support compression with %s"), + "gzip"); +#endif + break; + } + /* If there is no specification, we're done already. */ if (specification =3D=3D NULL) return; @@ -113,7 +160,6 @@ parse_compress_specification(pg_compress_algorithm algo= rithm, char *specificatio if (specification !=3D bare_level_endp && *bare_level_endp =3D=3D '\0') { result->level =3D bare_level; - result->options |=3D PG_COMPRESSION_OPTION_LEVEL; return; } =20 @@ -175,7 +221,11 @@ parse_compress_specification(pg_compress_algorithm alg= orithm, char *specificatio if (strcmp(keyword, "level") =3D=3D 0) { result->level =3D expect_integer_value(keyword, value, result); - result->options |=3D PG_COMPRESSION_OPTION_LEVEL; + + /* + * No need to set a flag in "options", there is a default level + * set at least thanks to the logic above. + */ } else if (strcmp(keyword, "workers") =3D=3D 0) { @@ -249,36 +299,49 @@ expect_integer_value(char *keyword, char *value, pg_c= ompress_specification *resu char * validate_compress_specification(pg_compress_specification *spec) { + int min_level =3D 1; + int max_level =3D 1; + int default_level =3D 0; + /* If it didn't even parse OK, it's definitely no good. */ if (spec->parse_error !=3D NULL) return spec->parse_error; =20 /* - * If a compression level was specified, check that the algorithm expects - * a compression level and that the level is within the legal range for - * the algorithm. + * Check that the algorithm expects a compression level and it is + * is within the legal range for the algorithm. */ - if ((spec->options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0) + switch (spec->algorithm) { - int min_level =3D 1; - int max_level; - - if (spec->algorithm =3D=3D PG_COMPRESSION_GZIP) + case PG_COMPRESSION_GZIP: max_level =3D 9; - else if (spec->algorithm =3D=3D PG_COMPRESSION_LZ4) +#ifdef HAVE_LIBZ + default_level =3D Z_DEFAULT_COMPRESSION; +#endif + break; + case PG_COMPRESSION_LZ4: max_level =3D 12; - else if (spec->algorithm =3D=3D PG_COMPRESSION_ZSTD) + default_level =3D 0; /* fast mode */ + break; + case PG_COMPRESSION_ZSTD: max_level =3D 22; - else - return psprintf(_("compression algorithm \"%s\" does not accept a compr= ession level"), - get_compress_algorithm_name(spec->algorithm)); - - if (spec->level < min_level || spec->level > max_level) - return psprintf(_("compression algorithm \"%s\" expects a compression l= evel between %d and %d"), - get_compress_algorithm_name(spec->algorithm), - min_level, max_level); +#ifdef USE_ZSTD + default_level =3D ZSTD_CLEVEL_DEFAULT; +#endif + break; + case PG_COMPRESSION_NONE: + if (spec->level !=3D 0) + return psprintf(_("compression algorithm \"%s\" does not accept a comp= ression level"), + get_compress_algorithm_name(spec->algorithm)); + break; } =20 + if ((spec->level < min_level || spec->level > max_level) && + spec->level !=3D default_level) + return psprintf(_("compression algorithm \"%s\" expects a compression le= vel between %d and %d"), + get_compress_algorithm_name(spec->algorithm), + min_level, max_level); + /* * Of the compression algorithms that we currently support, only zstd * allows parallel workers. diff --git a/src/bin/pg_basebackup/bbstreamer_gzip.c b/src/bin/pg_basebacku= p/bbstreamer_gzip.c index e7261910d8..c3455ffbdd 100644 --- a/src/bin/pg_basebackup/bbstreamer_gzip.c +++ b/src/bin/pg_basebackup/bbstreamer_gzip.c @@ -107,9 +107,7 @@ bbstreamer_gzip_writer_new(char *pathname, FILE *file, pg_fatal("could not open output file: %m"); } =20 - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0 && - gzsetparams(streamer->gzfile, compress->level, - Z_DEFAULT_STRATEGY) !=3D Z_OK) + if (gzsetparams(streamer->gzfile, compress->level, Z_DEFAULT_STRATEGY) != =3D Z_OK) pg_fatal("could not set compression level %d: %s", compress->level, get_gz_error(streamer->gzfile)); =20 diff --git a/src/bin/pg_basebackup/bbstreamer_lz4.c b/src/bin/pg_basebackup= /bbstreamer_lz4.c index b9752354c9..ed2aa01305 100644 --- a/src/bin/pg_basebackup/bbstreamer_lz4.c +++ b/src/bin/pg_basebackup/bbstreamer_lz4.c @@ -88,8 +88,7 @@ bbstreamer_lz4_compressor_new(bbstreamer *next, pg_compre= ss_specification *compr prefs =3D &streamer->prefs; memset(prefs, 0, sizeof(LZ4F_preferences_t)); prefs->frameInfo.blockSizeID =3D LZ4F_max256KB; - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0) - prefs->compressionLevel =3D compress->level; + prefs->compressionLevel =3D compress->level; =20 ctxError =3D LZ4F_createCompressionContext(&streamer->cctx, LZ4F_VERSION); if (LZ4F_isError(ctxError)) diff --git a/src/bin/pg_basebackup/bbstreamer_zstd.c b/src/bin/pg_basebacku= p/bbstreamer_zstd.c index 8a839145a6..32e1fb4b04 100644 --- a/src/bin/pg_basebackup/bbstreamer_zstd.c +++ b/src/bin/pg_basebackup/bbstreamer_zstd.c @@ -84,15 +84,12 @@ bbstreamer_zstd_compressor_new(bbstreamer *next, pg_com= press_specification *comp if (!streamer->cctx) pg_fatal("could not create zstd compression context"); =20 - /* Set compression level, if specified */ - if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0) - { - ret =3D ZSTD_CCtx_setParameter(streamer->cctx, ZSTD_c_compressionLevel, + /* Set compression level */ + ret =3D ZSTD_CCtx_setParameter(streamer->cctx, ZSTD_c_compressionLevel, compress->level); - if (ZSTD_isError(ret)) - pg_fatal("could not set zstd compression level to %d: %s", - compress->level, ZSTD_getErrorName(ret)); - } + if (ZSTD_isError(ret)) + pg_fatal("could not set zstd compression level to %d: %s", + compress->level, ZSTD_getErrorName(ret)); =20 /* Set # of workers, if specified */ if ((compress->options & PG_COMPRESSION_OPTION_WORKERS) !=3D 0) diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/= pg_basebackup.c index 9ce30d43a4..20d1baf675 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -2003,27 +2003,12 @@ BaseBackup(char *compression_algorithm, char *compr= ession_detail, */ if (includewal =3D=3D STREAM_WAL) { - pg_compress_algorithm wal_compress_algorithm; - int wal_compress_level; - if (verbose) pg_log_info("starting background WAL receiver"); =20 - if (client_compress->algorithm =3D=3D PG_COMPRESSION_GZIP) - { - wal_compress_algorithm =3D PG_COMPRESSION_GZIP; - wal_compress_level =3D - (client_compress->options & PG_COMPRESSION_OPTION_LEVEL) - !=3D 0 ? client_compress->level : 0; - } - else - { - wal_compress_algorithm =3D PG_COMPRESSION_NONE; - wal_compress_level =3D 0; - } - StartLogStreamer(xlogstart, starttli, sysidentifier, - wal_compress_algorithm, wal_compress_level); + client_compress->algorithm, + client_compress->level); } =20 if (serverMajor >=3D 1500) diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/= pg_receivewal.c index f064cff4ab..a6e3387a6d 100644 --- a/src/bin/pg_basebackup/pg_receivewal.c +++ b/src/bin/pg_basebackup/pg_receivewal.c @@ -875,38 +875,11 @@ main(int argc, char **argv) pg_fatal("invalid compression specification: %s", error_detail); =20 - /* Extract the compression level, if found in the specification */ - if ((compression_spec.options & PG_COMPRESSION_OPTION_LEVEL) !=3D 0) - compresslevel =3D compression_spec.level; - - switch (compression_algorithm) - { - case PG_COMPRESSION_NONE: - /* nothing to do */ - break; - case PG_COMPRESSION_GZIP: -#ifdef HAVE_LIBZ - if ((compression_spec.options & PG_COMPRESSION_OPTION_LEVEL) =3D=3D 0) - { - pg_log_info("no value specified for --compress, switching to default"); - compresslevel =3D Z_DEFAULT_COMPRESSION; - } -#else - pg_fatal("this build does not support compression with %s", - "gzip"); -#endif - break; - case PG_COMPRESSION_LZ4: -#ifndef USE_LZ4 - pg_fatal("this build does not support compression with %s", - "LZ4"); -#endif - break; - case PG_COMPRESSION_ZSTD: - pg_fatal("compression with %s is not yet supported", "ZSTD"); - break; - } + /* Extract the compression level */ + compresslevel =3D compression_spec.level; =20 + if (compression_algorithm =3D=3D PG_COMPRESSION_ZSTD) + pg_fatal("compression with %s is not yet supported", "ZSTD"); =20 /* * Check existence of destination folder. diff --git a/src/bin/pg_basebackup/t/010_pg_basebackup.pl b/src/bin/pg_base= backup/t/010_pg_basebackup.pl index 3d1a4ddd5c..40f1d3f7e2 100644 --- a/src/bin/pg_basebackup/t/010_pg_basebackup.pl +++ b/src/bin/pg_basebackup/t/010_pg_basebackup.pl @@ -860,9 +860,6 @@ SKIP: my $gzip_is_valid =3D system_log($gzip, '--test', @zlib_files, @zlib_files2, @zlib_files3); is($gzip_is_valid, 0, "gzip verified the integrity of compressed data"); - rmtree("$tempdir/backup_gzip"); - rmtree("$tempdir/backup_gzip2"); - rmtree("$tempdir/backup_gzip3"); } =20 # Test background stream process terminating before the basebackup has --=20 2.37.2 --4OiyN3vaaKGonkuT-- --1P5M3ocjGB91Bnbe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmMgLZAACgkQnvQgOdby QH0Q1w//aRQeCw83RAYL6gLLxE1jXAjyZXcOEXolrBOWUYbgdIB42gA2/mLxZ2Y0 l9WUgcRi6xtZbukugW9L1/8zzfp92FrmxgcK5CAzfIa2l/N8ZhKtQrRLUiJkPOZ/ GQ5P+dqBuR57JXDopFcIW/Y7E+2GOtiExE4kwrLyNHrbEB7ByzSCrSaiABbLE1Bu wBzBHwvsshrLOnxNmObYAAWFnr15tgGPcROQXStanzZdKo9EFgpPCfzO5eW/S59+ hr1H5j9TDZGj6Ww6A0u7r1gUIUyyevL6cwDEX5mXtp19SIzDklA9ldUaVtj/1Dxo rr0GOdrZGPhrQeERCukCw6LX+sCgUwDPZW+zb1foxyXpfNkfiL8PpmDz/qtBWcMG l9JT63luED3P76DYzXCth7rOWbe+VhrBsT9TtjQsF2aLxl9Cm/RHLb/+654ptad2 N8PtCciwVmydKnI76s5uPZyTPM3u8NiQEXb1u45hvuuVgQwqWxytnWZufs6fA5EC LUoqJlmwi9NvzvsjcQxK5ISZrV8YZ6t5Baajhtd44WyQXkH1ndsPSxRR9/EylfpS erbmNLR1zxYBusQuZ7fxkDDzw8qmSpgLp51HtXln13SZETy17LyiEqsdVOP0BWLj 4JfJY4dKjTbTsd1qi/G/hzy+RcbrA7esT62X8i5r9XfpNAV9fH0= =IsWO -----END PGP SIGNATURE----- --1P5M3ocjGB91Bnbe--