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 1ty8Ez-002p5n-OE for pgsql-committers@arkaria.postgresql.org; Fri, 28 Mar 2025 11:51:13 +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 1ty8Ew-008dpW-Nn for pgsql-committers@arkaria.postgresql.org; Fri, 28 Mar 2025 11:51:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ty8Ew-008dpO-G5 for pgsql-committers@lists.postgresql.org; Fri, 28 Mar 2025 11:51:10 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ty8Er-001cAz-20 for pgsql-committers@lists.postgresql.org; Fri, 28 Mar 2025 11:51:09 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2255003f4c6so40253415ad.0 for ; Fri, 28 Mar 2025 04:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743162664; x=1743767464; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t3mLjM47ruUPCoLbeeE/VChtt/bEM0sD3aU7L0h5QJQ=; b=hlo4P09E5quGo9bwTJFYNat38rRbwu1NNLI4hDiKIAs79rUbvfWi50W8540iIsPiZl n2xprYQw1KNrV3UJhyDWgpqsa3SLY5Hhrwhw80YjOXvQ3W7jciZN2+Qp0ZKcTEy4uyOm lNiz7Edyhf3uqQfMQ7pgM4IZXpyQCK78q9eL78/WzJudutrWxw3iqaF2NG73c9n+FC+r KmKxg26/qtqNfDMY0r5I1TYGz4NRHmhJvpAJaucLDxIcwMw+Hs6f+dc8fcrEvX4l2zCu wT1HogGwprw0cwM21uWfdx4nSGV/y2EvucX9Sc/QaUtb/C5BLxFu/9W0ZinSRDUHW7pU uamQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743162664; x=1743767464; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t3mLjM47ruUPCoLbeeE/VChtt/bEM0sD3aU7L0h5QJQ=; b=aFdxwLh3+mbtgk4KlDjT7qGT5KxlZjdyssfaOMbsUCPeaC/99A2x5M1zRuLhLE0+/t lNVFjB8WBH2gI8aCWwBbx3e+JvIblSpP2fjCin7t+ezbQh1tXqRQ+5imM8WMBxdlrByQ 1xYNaBhyOJ39Sk5ohF2ZwlHs9bSCLkB/R7WmE6XdYRats2K9L9rTjCaQ1fhYTCbAlDxP FSORHXF/D4d603fk+Aonfm2JWOddqf1jLb/+C6LmyP7WwfqZqB7hPRzv4Oun8IbmPD1U QpTJHKJMzPUIZGY2P3o5pGHXj8mxDM6b+bJ+d2HWeAiEu6sS3UnVs7BysQiJfnQvJsC2 wkFg== X-Gm-Message-State: AOJu0Yw5U2ZFxYwM9viZQ5kmR9YNz81LYgaepOLb2Xa6GOIwpINXY8je jLbIv02peX/I+HHL1OGN2A56F9vn0XqNy59rbNqoaJg/gKR59NkfmepPFTO0zi4DPq1OVQVUn1r paO7LQ21Sw8foQ3qDP3JfRgb3TiJHX6DZOGQ= X-Gm-Gg: ASbGncv3esD5PTOWyaP15aQ7oFB1K9jZ6i9LpVGvwrLWEsCto+l5ctxpM1rr45rR1KP rJY8BxkbEEpjTbsLZt6+ExVRRpDBN/8Mw8Gk8ZgSQMoAuOjoY4tG26fSlQCnyaT7YNbDIZTh/IA OrCP8xrkTSraNo5zZqekLTOXd8UMdQp91KwrIOePM= X-Google-Smtp-Source: AGHT+IHZjDR8zthJl5RpF0TfrtuCaSJ5CwjJ/uME0kMIYBdHnE3DRAyA8lNe8cigC1c19rVhNARW/pHbP9D93mtzUOA= X-Received: by 2002:a17:90b:4a4f:b0:2fe:a77b:d97e with SMTP id 98e67ed59e1d1-303a7d66285mr11379753a91.11.1743162664230; Fri, 28 Mar 2025 04:51:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 28 Mar 2025 17:20:53 +0530 X-Gm-Features: AQ5f1Jpu92TBgNM5P9gEsh91vEvjdDStQnhXac_LevinhBbxj6jMRf2pa-JpkIY Message-ID: Subject: Re: pgsql: Stablize tests added in 3abe9dc188. To: Amit Kapila Cc: pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 28, 2025 at 11:18=E2=80=AFAM Amit Kapila wrote: > > Stablize tests added in 3abe9dc188. > > The problem is that after the ALTER SUBSCRIPTION tap_sub SET PUBLICATION > command, we didn't wait for the new walsender to start on the publisher. > Immediately after ALTER, we performed Insert and expected it to replicate= . > However, the replication could start from a point after the INSERT locati= on, > and as the subscription isn't copying initial data, we could miss such an > Insert. > > The fix is to wait for connection to be established between publisher and > subscriber before starting DML operations that are expected to replicate. > > As per CI. > > Reported-by: Andres Freund > Author: Hayato Kuroda > Discussion: https://postgr.es/m/CALDaNm2ms1deM5EYNLFEfESv_Kw=3DY4AiTB0LP= =3DqGS-UpFwGbPg@mail.gmail.com > By mistake, I added a wrong discussion link. The correct one is https://postgr.es/m/ksxbayuk5hgqdsryjxqkbnjyvk6amd2jf5tui565ex6vazglls@jva4= njirno4u --=20 With Regards, Amit Kapila.