1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Module/Common
David Steele d211c2b8b5 Fix possible truncated WAL segments when an error occurs mid-write.
The file write object destructors called close() and finalized the file even if it was not completely written.  This was an issue in both the C and Perl code.

Rewrite the destructors to simply free resources (like file handles) rather than calling the close() method.  This leaves the temp file in place for filesystems that use temp files.

Add unit tests to prevent regression.

Reported by blogh.
2019-02-15 11:52:39 +02:00
..
CommonEncodePerlTest.pm Add _FMT variants for all THROW macros so format types are checked by the compiler. 2018-05-03 11:24:29 -04:00
CommonHttpClientPerlTest.pm Improve the HTTP client to set content-length to 0 when not specified by the server. 2018-06-26 17:27:22 -04:00
CommonIniPerlTest.pm Rename PGBACKREST/BACKREST constants to PROJECT. 2018-11-24 19:05:03 -05:00
CommonIoBufferedPerlTest.pm Divide tests into three types (unit, integration, performance). 2018-04-24 09:12:25 -04:00
CommonIoHandlePerlTest.pm Fix possible truncated WAL segments when an error occurs mid-write. 2019-02-15 11:52:39 +02:00
CommonIoProcessPerlTest.pm Divide tests into three types (unit, integration, performance). 2018-04-24 09:12:25 -04:00
CommonLogPerlTest.pm Rename Perl tests so they don't conflict with their C counterparts. 2018-01-16 12:36:22 -05:00