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 1nef9T-00019s-Sh for pgsql-performance@arkaria.postgresql.org; Wed, 13 Apr 2022 15:43:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nef9S-0005Rs-Nh for pgsql-performance@arkaria.postgresql.org; Wed, 13 Apr 2022 15:43:26 +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 1nef9S-0005Ri-9V for pgsql-performance@lists.postgresql.org; Wed, 13 Apr 2022 15:43:26 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nef9P-0001cy-HC for pgsql-performance@postgresql.org; Wed, 13 Apr 2022 15:43:25 +0000 Received: by mail-il1-x12a.google.com with SMTP id e1so1377484ile.2 for ; Wed, 13 Apr 2022 08:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=opJjEeQ/1dQuYwVdI3SZ3TyhkJetpijP5Sp9wriw47s=; b=ueew1MQ3udcN1AaknnJH83VB5wddS37cPYq/jpc141xx9y3r1h2S30YiY8fe9Yvhax XJzcHhuihc5uf1kN8FsJO+5fjogEa3u7lMO3W/WHW7umKRBLJ1DvuL7yuPV2zVjXicfo PeJNbTV5nN8GH9oPbaHEY1BP49w5Dev2+v6KX/iPVa0DUFrWGrGe1N7Vw+P6DQExiL5Z rWChbQG+RAO8SZ3lObUtNfQQRA0vK/kJVV+XfD9VoacRPtfLDZY2bhCulmzJoy63TumH I3SwfkpdKY7i3ZpmgavNHB3I9X0BgRgAa6g8t50g5iT1+zbz5x8ndykD/bXlt9m13p9g qCbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=opJjEeQ/1dQuYwVdI3SZ3TyhkJetpijP5Sp9wriw47s=; b=SCDlH7Tee7rakdS3L0PK5+HPKV70yF+nIAP7PaJDxXCkBzb3XYnQy8dfu0v/iCUWXa au5imLKFCEzinQR8I9vpuJep0zKscZOCPBgWTO81ggy2/9PQc2FvyjLU7Zt/5uA54LUd s+DweV0i1WbGhu9ZYGgtbC7uCQQ8EtkEmcV3LooYqmpVHOaWDg7gF9ugyYpn3fxQcyY+ 20Wr/YbNUpcTtv57/ItiGeRJ+zkrKwFZ+AknZbtG6YVNjhkaaOZLBKqRB2Y3yPTVZA7L eIvSIYqYKTdBh4rIKUtGvValg+fDMl8tiAuiDtbHn0xrf+E5giZNpDdXx5n6BhTj7TOP nYVA== X-Gm-Message-State: AOAM53263AzTpUFgsOz7DVUX8ApJ1JQKhHpY63CgafUbPCLZCntw/2tV WkoMWYrzWG81T5EEkBNupfB3Og== X-Google-Smtp-Source: ABdhPJxH+mcXk5PDHUPg8itxBq5hnYTieIzwEuWcUsoKCS0qNYdyWcB+bJ11O5ZasSrPjLR/gZ1tdQ== X-Received: by 2002:a92:6012:0:b0:2c6:b0d:240e with SMTP id u18-20020a926012000000b002c60b0d240emr17335223ilb.177.1649864601256; Wed, 13 Apr 2022 08:43:21 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p6-20020a0566022b0600b0064c59797e67sm170921iov.46.2022.04.13.08.43.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Apr 2022 08:43:20 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 0F58180140C; Wed, 13 Apr 2022 10:43:20 -0500 (CDT) Date: Wed, 13 Apr 2022 10:43:19 -0500 From: Justin Pryzby To: ldh@laurent-hasson.com Cc: Ranier Vilela , pgsql-performance@postgresql.org Subject: Re: An I/O error occurred while sending to the backend (PG 13.4) Message-ID: <20220413154319.GP26620@telsasoft.com> References: <20220228220503.GF25269@telsasoft.com> <20220301192641.GA15744@telsasoft.com> <20220303164604.GH27651@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 13, 2022 at 03:36:19PM +0000, ldh@laurent-hasson.com wrote: > After a lot of back and forth, someone in IT informed us that the database VM is under a backup schedule using Veeam. Apparently, during the backup window, Veeam creates a snapshot and that takes the VM offline for a couple of minutes… And of course, they scheduled this right at the busiest time of the day for this machine which is during our nightly ETL. Their backup doesn’t perform very week either, which explained why the failure seemed to randomly happen at various points during our ETL (which takes about 2h30mn). > > They moved the schedule out and the issue has not happened again over the past 3 weeks. This looks like it was the root cause and would explain (I think) how the database and the client simultaneously reported a connection timeout. > > Thank you so much for all your help in trying to figure this out and exonerate Postgres. Great, thanks for letting us know. This time it wasn't postgres' fault; you're 2 for 3 ;) One issue I've seen is if a vmware snapshot is taken and then saved for a long time. It can be okay if VEEM takes a transient snapshot, copies its data, and then destroys the snapshot. But it can be bad if multiple snapshots are taken and then left around for a long time to use as a backup themselves. -- Justin