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 1gk58M-0004Du-Tt for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 10:42:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gk58L-0000oX-9P for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 10:42:49 +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 1gk58L-0000Pd-0D for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 10:42:49 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk58G-0003nK-AH for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 10:42:45 +0000 Received: by mail-lf1-x141.google.com with SMTP id i26so7438835lfc.0 for ; Thu, 17 Jan 2019 02:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=tkDqblTsRynr5f3hSl4PYDI2/xF/p1CwgIhYUdgU9YU=; b=sw344G3isU9R0uM6pkCxk3U8O2RFHNXGk0DADyzvn3dYTH1iJVbTNpXcpowI0cIFlu NPaXLs+iEfhFw9Vx4OOlZk0VGFKaofRS81QAj1ROuriDjO8A26bhE/39+JZeR3jLqYxX d2XnzFj6erdbi2/XRp2Az7Au5OeHlucdhTPy8VXxPvXM05RclxFxMAnRtr66SOuTrR2u x1jUkSniVhJIOoavFgPDrMRjlRA5YuCKG9UiikRq3aC8mtNM0UhrHxR01sTBxry8ZGHi sWMrMxrGj/XwKaIPayql1OejCkT0XtgddXvMos1axJVvpIe0PpshLTjCQI/wXnpQuhy0 BG+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tkDqblTsRynr5f3hSl4PYDI2/xF/p1CwgIhYUdgU9YU=; b=PsfJAjwvqhgVcwBj/b9s8c1139HGs4sRA89lJX3kvqfoJPPuY3o2yrfbxpNoHb0zhu Fi5LmHkpY1DOQEf7KZR9lesRcGAp4MIJDnO4ybShbbM+0VqEOOxGD3/0JTJ3Vkr9+jtD rGn+JrLbkuc96ExYf5OTivjfXg/qap1IM2sazmXfeFzucyRZ+MkpRcaF731wHQvo8aMz MUkay0xBB7xQUvX4SK95YVy1Ca+ePsuBVDMT1uFvcYctu3j6k6XUq3wDK84Vnb6lwHLt eGdK/WnEXEWVQuhTD2IVZWVVkFXKeYkMG1foOwzSzxX8xFaytkiF39BNRnIZU6h+FpTt ytkg== X-Gm-Message-State: AJcUukdzZfvZ8MjrMRcM74FFWqPBS9gacyEUYpwiY/HCoO52vKi4h6/S SB/5vtsx2TJ2tyyWkDoMSzZ78c46 X-Google-Smtp-Source: ALg8bN4UEZbG0e9oQGfqYuqIQph+oOU//BzNwCroeQ40GjI2TBOgtTfJ03NY0rwJhX3a1eRelbNXmw== X-Received: by 2002:a19:3fcf:: with SMTP id m198mr9545431lfa.106.1547721762309; Thu, 17 Jan 2019 02:42:42 -0800 (PST) Received: from [1.0.0.7] ([178.155.4.147]) by smtp.gmail.com with ESMTPSA id a19sm215592lfi.57.2019.01.17.02.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 02:42:41 -0800 (PST) Subject: Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ To: Petr Jelinek , Andres Freund , pgsql-bugs@lists.postgresql.org References: <15594-9df77c4c0da54c2c@postgresql.org> <20190116190949.veuctcodlttweumc@alap3.anarazel.de> <467b0e02-8fbd-8e7f-4457-037bcc560307@2ndquadrant.com> From: Alexander Lakhin Message-ID: <48b7323d-4cef-21e7-9224-3a13a8bf9b6e@gmail.com> Date: Thu, 17 Jan 2019 13:42:40 +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: <467b0e02-8fbd-8e7f-4457-037bcc560307@2ndquadrant.com> 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 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. Best regards, Alexander