pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: tender wang <tndrwang@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
Date: Fri, 5 Jan 2024 08:45:13 +0900
Message-ID: <ZZdDCXW4HtRg1miG@paquier.xyz> (raw)
In-Reply-To: <20240104185658.mniixu3lblpdqssz@awork3.anarazel.de>
References: <18259-6e256429825dd435@postgresql.org>
	<CAHewXNm4ktpPy=9g7NAYV=BoW-Ao3taZREPTcXnJDZ6P5esiag@mail.gmail.com>
	<CAHewXNnayN3NM1HfaOCejk=sGfSva6ZDArWxKiTxL7PdDHRtMw@mail.gmail.com>
	<09677462-ed4c-2b2c-7918-8a3961dc772a@gmail.com>
	<CAHewXNn4dZa1erfDwLqUQ93E3VkQiHu6TpFngXwyU9AyyHny-Q@mail.gmail.com>
	<CAMbWs481UoOxHyZGih-VhhC5bOQCpVd_KLXPtBAMRg7gD50+2w@mail.gmail.com>
	<20240104185658.mniixu3lblpdqssz@awork3.anarazel.de>

On Thu, Jan 04, 2024 at 10:56:58AM -0800, Andres Freund wrote:
> But perhaps this could actually serve as a good first case for Michael's
> failure injection patch?  A failure injection to make
> FileFallocate()/FileZero() fail should just be a few lines.
> 
> We generally have pretty much no coverage for out-of-space, partial
> read/write, EINTR of file operations, because that's hard to do with the
> current test infrastructure. So this might be a nice first case.

Indeed.  This one should be fairly simple with a single session, a
couple of SQLs and an ERROR callback.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (17+ messages)  latest in thread

Message-ID: <ZZdDCXW4HtRg1miG@paquier.xyz>
Permalink:  ../ZZdDCXW4HtRg1miG@paquier.xyz/
Also on:    postgresql.org/message-id/ZZdDCXW4HtRg1miG@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, andres@anarazel.de, guofenglinux@gmail.com, tndrwang@gmail.com, exclusion@gmail.com
  Subject: Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
  In-Reply-To: <ZZdDCXW4HtRg1miG@paquier.xyz>
  References: <18259-6e256429825dd435@postgresql.org> <CAHewXNm4ktpPy=9g7NAYV=BoW-Ao3taZREPTcXnJDZ6P5esiag@mail.gmail.com> <CAHewXNnayN3NM1HfaOCejk=sGfSva6ZDArWxKiTxL7PdDHRtMw@mail.gmail.com> <09677462-ed4c-2b2c-7918-8a3961dc772a@gmail.com> <CAHewXNn4dZa1erfDwLqUQ93E3VkQiHu6TpFngXwyU9AyyHny-Q@mail.gmail.com> <CAMbWs481UoOxHyZGih-VhhC5bOQCpVd_KLXPtBAMRg7gD50+2w@mail.gmail.com> <20240104185658.mniixu3lblpdqssz@awork3.anarazel.de> <ZZdDCXW4HtRg1miG@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox