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 1kbwBb-0005dm-7x for pgsql-committers@arkaria.postgresql.org; Mon, 09 Nov 2020 01:41: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 1kbwBY-0002cN-QD for pgsql-committers@arkaria.postgresql.org; Mon, 09 Nov 2020 01:41:32 +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 1kbwBY-0002cG-Kl for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2020 01:41:32 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbwBV-0004Gi-Sk for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2020 01:41:32 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A74EC5C0234; Sun, 8 Nov 2020 20:41:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 08 Nov 2020 20:41:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Sm4A8h3r7HSmmJsk9+wa8uXBL64 D6bw5l94DUfRUvoo=; b=nyjh2443ep1lqNYJJmr+YFzl6UfjcS0HeCkIfLbEnHR z5iHrC/BBvSNJFzRBwT36l9eMcUyjzGc62gzMdxROq1V7wpYsotXhVuWmUpy3B4s pPMKzICY6v/eeZXOkgO/SBAwgVKOd3GjQ4W3vB9FnNPttkPL2x9vXDHcz1/2sTkK MEADnWjEdmzKePTfdg3XS+KsQEKd3GcBrpWiyeLDdcMl3lrRfcJmFRoRP3hOQG5B w4spbx5DkH4eX7U0dYIbPCeGow43Weh7IdBGM1XaAxfz5sLX2ej/279vdbspVE0m qij161DSHP2VUv9RN+y6c2o3YUFYIwxHnFbec3IIfVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Sm4A8h 3r7HSmmJsk9+wa8uXBL64D6bw5l94DUfRUvoo=; b=UN9mX3Fbcpyua5ZrTErBse 5bHqb9b+fEc+eK8ywjPnJvL4e6B6/hXY+mj5zMz5nkEh7nRW22YE+W/3hCicT9Xj +5YEb4W2U1FDLnxxnCSRaJhdtDRqueIx2pjYkEJWpnDjaAnfncWJwdE+4tNQrNZ0 9jl3O26QVfqMmfBiq04QiX3vYCDtMjeepGfSeild1QE9XtfOth1teZyzFONH8/Wf hzkr5LdtsEg5aixO8EAV4eqMFfn1rhktW9E7u36sYFkXrMlHUHgLqHQV+0krZMN7 pBbr2Zp2dn+InDzUdxAFsxw+6FH7Z7IY9U46/XTqLAC/NEFIlsqo11Gl2Su+pbYQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddugedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeekfeeuffektdfgueffiedtffff feetiedvhfevhfdvjeetteetgedvjeetueeiueenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgpdhpghhsqhhlrdgsuhhilhgunecukfhppeduuddurddutddvrddukedt rddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 81CC0328005A; Sun, 8 Nov 2020 20:41:26 -0500 (EST) Date: Mon, 9 Nov 2020 10:41:18 +0900 From: Michael Paquier To: Amit Kapila Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Skip empty transaction stream in test_decoding. Message-ID: <20201109014118.GD1695@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9UV9rz0O2dU/yYYn" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Amit, On Fri, Sep 11, 2020 at 04:43:59AM +0000, Amit Kapila wrote: > Skip empty transaction stream in test_decoding. >=20 > We were decoding empty transactions via streaming APIs added in commit > 45fdc9738b even when the user used the option 'skip-empty-xacts'. The APIs > makes no effort to skip empty xacts under the assumption that we will > never try to stream such transactions. However, that is not true because > we can pick to stream a transaction that has change messages for > REORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT and we don't send such messages to > downstream rather they are just to update the internal state. So, we need > to skip such xacts when plugin uses the option 'skip-empty-xacts'. Anole has reported the following failure in a test introduced by this commit: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Danole&dt=3D2020-1= 1-08%2017%3A49%3A13 Here is the diff: --- /home/pgbfarm/buildroot/HEAD/pgsql.build/contrib/test_decoding/expected/con= current_stream.out 2020-09-11 04:59:46 -0600 +++ /home/pgbfarm/buildroot/HEAD/pgsql.build/contrib/test_decoding/output_iso/r= esults/concurrent_stream.out 2020-11-08 12:31:10 -0700 @@ -13,7 +13,6 @@ opening a streamed block for transaction streaming change for transaction closing a streamed block for transaction -committing streamed transaction ?column? This smells like a race condition. -- Michael --9UV9rz0O2dU/yYYn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+onj4ACgkQnvQgOdby QH17Eg//ajL0IQ4AsambQz5TR/+QobjASQoT5nZqDBjTf7kvG1Q9e3ww8Nz6qCTd CcqRqi0+Lab5R97GVrXj+ijhx90tg0fAKs5XVPyYB80Z1xLa5MYSN3CpXIq59ckt Al8/ZNPXP1D/FJvT+XAailpIuXA/W49RWpD47CDDB499MwSTsnCmQfzPLAyZShYV 6ighKJk5yeqAsHSn44t9+WMXDc8jmnxTDPxbsTjEZ14XWQNs6fCWCAApZ1fvhXzJ bGhp4Cw+TdT9SlwNMMzujPh6+u4NILiDFL97XG927daCh8w2I6lQeD6yBszSgHQ5 pupQkPUGZzjreRMB68mjOW8PkoJcFYsL0Sh6EeeJTZsa5yKfkdiYaSAYy44mTLgR GwTLixiM7fuJhN9vcqjo35dcvi1c97mmo1l8tN8rL9mvHsi1hWpc7X5EKlMXm8/k A8Cph6i3BAhBvkZ425J0EcFTjIGlMwGzOHccwWy9/RRiY2JNgbLWGwCmZF8Ay5Z6 53O278/Io4N+ISjSKhmY1djAbh2xf0SGJJEMAM6tiDTnVAGkBn46+lIUxdFzHp3z jI9bsuVK033/tJiMVAoPz0A+monkSrnHjPcWfu1iUFPkowfORn+E1YfesRI5sIeK 84f77YXmFoE6ti82qa4Kd7KblXMYJWDKufSGi1rUaFKDuSeBxio= =alOS -----END PGP SIGNATURE----- --9UV9rz0O2dU/yYYn--