Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCcqO-00Gfwg-Gm for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 09:44:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rCcqN-00Cu4y-8b for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 09:44:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCcqM-00Cu4p-BZ for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2023 09:44:54 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCcqJ-00BMLL-JC for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2023 09:44:53 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 76EAB5C01FE; Mon, 11 Dec 2023 04:44:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 11 Dec 2023 04:44:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type: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=fm1; t=1702287890; x=1702374290; bh=r0 o9AqMzD2Hm60wZB9RLGzFuMowHAWRvNu9ilh8pp1o=; b=QsECnhmfpLwBni/0ex dW3QQJGErftG4ALcG2PVJGdoX+Cr6raa1tsB89Chc7Nu3vrHAeQyBDMtoTUas6K8 +VX1cwwrLka8I6xJ8D3TdyfmdZvozuTrzP3KcjmLMh9NT73TfUhakKiC5iqiXJwv 818PcVm6zjCIKXVczgegtcDkDHH5psRAKMhu1JOyueRLqjMBQ5KYIiUPOwKWis3m PfIdrvpukXkgt5XgBwqIriGbfDw1awklulmwJTOk+EEm+S3aFogMhpb4SyRTjjzo MCLWFRBgf6kC27gXFSzvm1hiMGZdlXS0zHrHmrXUhn3q/z9Y8HSgcmfp2tKiSmuh mEcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm1; t=1702287890; x=1702374290; bh=r0o9AqMzD2Hm6 0wZB9RLGzFuMowHAWRvNu9ilh8pp1o=; b=LoeIKid6s1dDpSOKAFhFMkwg1g9w2 M4rr45ezGuNfECbiqXAeUBxL83GQPZzvpRWpW+eGFwX1PjPXYX5L136GpBQR0QWv rynPZbOLzyuDSkmgWHcgY+gaERR0LuPBcjFzzmJdzRV5MFtl18EcRpqKMxl4FnYY FzURM2Zdxm9gIJHW8Z3zmYu8GJgh3xE5M8gyNculzqEFiER/e818q9urHs94aGu+ jJQKYM2cGooUGUnTumsNB2x4jQeppfZONuuGEizu339hghH2ucO+UgDSyAM1rtib DRNg829BRRLbvEDE4qxE5Yt246oi4SEx6a+sJYedyXuNj7bIG1KjIEIFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelvddgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Dec 2023 04:44:48 -0500 (EST) Date: Mon, 11 Dec 2023 18:44:46 +0900 From: Michael Paquier To: Dilip Kumar Cc: Ashutosh Bapat , Postgres hackers Subject: Re: Adding facility for injection points (or probe points?) for more advanced tests Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7H6D6ExeKmpLmjzv" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --7H6D6ExeKmpLmjzv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 11, 2023 at 11:09:45AM +0530, Dilip Kumar wrote: > I haven't specifically done a review or testing of this patch, but I > have used this for testing the CLOG group update code with my > SLRU-specific changes and I found it quite helpful to test some of the > concurrent areas where you need to stop processing somewhere in the > middle of the code and testing that area without this kind of > injection point framework is really difficult or may not be even > possible. We wanted to test the case of clog group update where we > can get multiple processes added to a single group and get the xid > status updated by the group leader, you can refer to my test in that > thread[1] (the last patch test_group_commit.patch is using this > framework for testing). Could you be more specific? test_group_commit.patch includes this line but there is nothing specific about this injection point getting used in a test or a callback assigned to it: ./test_group_commit.patch:+ INJECTION_POINT("ClogGroupCommit"); > Overall I feel this framework is quite useful > and easy to use as well. Cool, thanks. -- Michael --7H6D6ExeKmpLmjzv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmV22g4ACgkQnvQgOdby QH2s3A//VL7TCt3/6gzLFuKThzbsAqdIYMVxL7TOSfbzc0rwNgbuHVnC3xqAMS7X LBcGsG9gwtR2CypMZDbdSSV1bSLWfxsawflsJmSYZPrVA+2psBBM98s+/extIEfX DElgE0huntVn19p/oiEVy51RPayGVeYIqlzgHguGfu4XqhCygnqe6bFMk+LH6N8O J3k9CNj1PA6vCApubLZALuCf4lOk6uRJH7lMVx0Za2UxN+gm+qfJEQcIgm8iLcBv uYZ3CFCgkhrfeAhEqErO0EpObPkBnMyzwFEoFxjTzIA+xhKjLrqUtF5O89KSTjuN PTPu1JWeXAP4g0tsYjUs63H2rApfObJAk61f6qi1GksPcdEQ7SiRJY1roTIMjd/s GzD9NepCdDOWcZieaaW7ipqIlRi9EeNXFdEsBTVGXjI8qtgZm+Iub6jOOvekS94F 9L5e5VnjwBpaLpdAxrMfjpzaWeAUdaFgnv67mdaBPzQcixZosMwzuh8tIiW8U5/6 9UYeAcIoVORN+xFIBxig8kU0au5RQtLcPe5sfib6gfOnrsNcgnAM58XkidhvFJDS 7HBTdM5kIGX/nBHSlYtW4rA7SXn88WsOxI1WPA647x5Aozv5t2idv2sld/y8T7e4 8fpLD+qntSsI5GRUqLaWeVQAFHiVszO56aZ1D2n/zzUirEQnaFI= =m3QD -----END PGP SIGNATURE----- --7H6D6ExeKmpLmjzv--