Fault injection framework - Mailing list pgsql-hackers

From Asim R P
Subject Fault injection framework
Date
Msg-id CANXE4TdxdESX1jKw48xet-5GvBFVSq=4cgNeioTQff372KO45A@mail.gmail.com
Whole thread Raw
Responses Re: Fault injection framework  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hello

Fault injection was discussed a few months ago at PGCon in Ottawa.  At least a few folks showed interest and so I would like to present what we have been using in Greenplum.

The attached patch set contains the fault injector framework ported to PostgreSQL master.  It  provides ability to define points of interest in backend code and then inject faults at those points from SQL.  Also included is an isolation test to simulate a speculative insert conflict scenario that was found to be rather cumbersome to implement using advisory locks, see [1].  The alternative isolation spec using fault injectors seems much simpler to understand.

Asim

[1] CAAKRu_a7hbyrk=wveHYhr4LbcRnRCG=yPUVoQYB9YO1CdUBE9Q@mail.gmail.com


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: POC: Cleaning up orphaned files using undo logs
Next
From: Dilip Kumar
Date:
Subject: Re: POC: Cleaning up orphaned files using undo logs