Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkDK6-0003eb-Vb for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 19:27:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkDK4-0004tO-II for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 19:27:28 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkDK4-0004ns-A4 for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 19:27:28 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkDK1-0007VH-An for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 19:27:27 +0000 Received: by mail-lf1-x142.google.com with SMTP id a16so8692861lfg.3 for ; Thu, 17 Jan 2019 11:27:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=QytqdYITpi//DFIptfg75bViT7M4aSs2XXmFRsOa+ug=; b=KOtw4rVzv+ukHwlCj2L0rOjr9xO29yanh/DcyCdo12YWTYaNGImUiiBvkKRBnYOINB SDwHumKqTGQtMkHErbWDSN4/WLMt+X7Y3YIk691y0lO4mZQAgv3xJXeAMwwDY0kkSWiC RBLsN951BZUSDJrplfTmAoAv8zUMWO2Q3H43UFk8Z+dn3IbG4yObm+p05G6FAmTX3FWd 0SUo/MuK71F6asmqzSkatFL+ll77yq2skwcK8MJzlut7lxVUIDcpGiXruXaiFU2uLX0r txUViSJh24mhDOn1A46xnSPiQ3bCZV8n/LSuFq8+j+IsJdNsx7DaYoz9XTPcgr5Q20Io dDvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=QytqdYITpi//DFIptfg75bViT7M4aSs2XXmFRsOa+ug=; b=AAKEELz5X+uRNITMrX6pAoovYRWO9lcfaS8kgwpLYAoIgCF+wB9hdbPgv1ja6WkMpL uxJnXNTveREWvYLSRjzwqNUUbKdAp1tnOknXEUpTNmOsQqBG41Qi20KrAO8NVSmwG9nL i/X8utje7LyaGuYqHIoVJ9/TFU5dTRjo9Cj872jgud81snrRkZ0036c1eoKuVnOb8kma o5mzwE/6xBhecl5CR3QwsowoREeH5qKkodmbQBCjc2xMBQ3suJjICCYUVIiqmejeTxkm BkoU5/4Q16C8+ojEh0/GCTqzRVQCGbhQVs7iwABJoxIojjohAv0SZ5ZBb4TWk5N5zqYI 4uyw== X-Gm-Message-State: AJcUukfuSMD/rx+SwGBdixZhSJkCvvcAq5lHruAYqz4B/voV34RMDums TbkwIJraq5hWTjocKivZUSd/t/HX X-Google-Smtp-Source: ALg8bN4pxm5THTdqTIrusemJElEilXp5nlnW2k9YOTjhZlyFZIv8cSkBbs7WGYXnXPmohzB56XQaTA== X-Received: by 2002:a19:789:: with SMTP id 131mr11557110lfh.11.1547753243774; Thu, 17 Jan 2019 11:27:23 -0800 (PST) Received: from [1.0.0.7] ([178.155.4.147]) by smtp.gmail.com with ESMTPSA id x29-v6sm385604ljb.97.2019.01.17.11.27.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 11:27:22 -0800 (PST) Subject: Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ To: Andres Freund Cc: Petr Jelinek , pgsql-bugs@lists.postgresql.org References: <15594-9df77c4c0da54c2c@postgresql.org> <20190116190949.veuctcodlttweumc@alap3.anarazel.de> <467b0e02-8fbd-8e7f-4457-037bcc560307@2ndquadrant.com> <48b7323d-4cef-21e7-9224-3a13a8bf9b6e@gmail.com> <20190117173930.5m5b5fm5fbjtphgv@alap3.anarazel.de> From: Alexander Lakhin Message-ID: <4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com> Date: Thu, 17 Jan 2019 22:27:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190117173930.5m5b5fm5fbjtphgv@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 17.01.2019 20:39, Andres Freund wrote: > On 2019-01-17 13:42:40 +0300, Alexander Lakhin wrote: >> 17.01.2019 13:25, Petr Jelinek wrote: >>> On 16/01/2019 20:09, Andres Freund wrote: >>>> On 2019-01-16 14:56:34 +0000, PG Bug reporting form wrote: >>>>> The following bug has been logged on the website: >>>>> >>>>> Bug reference: 15594 >>>>> Logged by: Alexander Lakhin >>>>> Email address: exclusion@gmail.com >>>>> PostgreSQL version: 11.1 >>>>> Operating system: Ubuntu 18.04 >>>>> Description: >>>>> >>>>> Some tests in contrib/test_decoding/output_iso/ occasionally fail. >>>>> To reproduce it reliable you can do: >>>>> # sed 's/ mxact / $(shell printf "mxact %.0s" `seq 1000` ) /' -i >>>>> contrib/test_decoding/Makefile >>>>> # make check -C contrib/test_decoding/ >>>>> >>>>> ... >>>>> >>>>> I observe this issue with the tests: mxact, delayed_startup, and >>>>> ondisk_startup. >>>> Interesting - I've not seen that on the buildfarm before, or in local tests >>>> with a lot of repetitions. I assume the problem vanishes if you add 'skip-empty-xacts', '1' >>>> to the options of pg_logical_slot_get_changes()? >>>> >>> I bet those empty transactions are from autovacuum. The probability of >>> hitting this could be exaggerated by the fact that the test is run >>> within the same instance 1000x rather than running the make check 1000x >>> so we produce plenty of catalog bloat for autovacuum to clean. >>> >> Yes, it's almost impossible to hit this with `make check`, but with >> `make installcheck` the probability is much higher as we use an existing >> instance. >> I've reproduced it with `make check` just to make it simple. > I'll apply the fix for this, but please note that installcheck > *intentionally* is disabled for test_decoding. Thanks, Andres! I see a comment in Makefile: # Disabled because these tests require "wal_level=logical", which # typical installcheck users do not have (e.g. buildfarm clients). So if I use for the installcheck'ed instance a config with the required wal_level, is it ok to perform `make installcheck-force -C contrib/test_decoding`? Or maybe there is some other difficulty with installcheck? Best regards, Alexander