Commit Graph
100 Commits
Author SHA1 Message Date
Grigory Smolkin 0c0eefc882 tests: fix compatibility tests for remote backup 2019-03-16 15:15:17 +03:00
Grigory Smolkin b00243f05b bump version to 2.0.28 2019-03-06 20:23:17 +03:00
Grigory Smolkin 16f5c9af2a Merge branch 'master' into remote_pull 2019-03-05 02:44:41 +03:00
Grigory Smolkin a50ffed5d4 tests: add test_merge_different_wal_modes 2019-03-03 02:35:06 +03:00
Grigory Smolkin 2466e51871 tests: fix gdbobject method continue_execution_until_break() 2019-03-02 02:29:58 +03:00
Grigory Smolkin 236a9069d2 tests: do not use remote archive-push/archive-get 2019-03-01 22:44:57 +03:00
Grigory Smolkin 49e6710f2b Merge branch 'master' into remote_pull 2019-03-01 19:23:59 +03:00
Grigory Smolkin 322b3f0b21 tests: fixes for PG 9.5 2019-03-01 19:19:56 +03:00
Grigory Smolkin 53bd83bfcd fix temp replication slot for PG >= 11 2019-03-01 18:40:29 +03:00
Grigory Smolkin d9cb01a167 tests: added backup_test.BackupTest.test_persistent_slot_for_stream_backup() and backup_test.BackupTest.test_temp_slot_for_stream_backup() 2019-03-01 16:29:47 +03:00
Grigory Smolkin 98bc12d535 new flag '--temp-slot' allows user to use temporary slot for STREAM backups, if no slot name is specified via '--slot' option - default name 'pg_probackup_slot' is used 2019-03-01 16:09:53 +03:00
Grigory Smolkin 6e9a5793ef mark --replica-timeout as deprecated 2019-03-01 02:41:13 +03:00
Grigory Smolkin 094dc8b166 mark master-* options as deprecated 2019-03-01 00:44:33 +03:00
Grigory Smolkin 75b0ff2881 tests: minor fixes 2019-02-28 21:12:32 +03:00
Grigory Smolkin 4aab7c488b tests: added compatibility.test_backward_compatibility_merge() 2019-02-28 20:09:11 +03:00
Grigory Smolkin 7a34dbe5f8 fix condition for elog message about compression level 0 2019-02-28 17:54:45 +03:00
Grigory Smolkin 093e597ac8 tests: remove deprecated modules 2019-02-28 17:07:41 +03:00
Grigory Smolkin b6c43f93d2 tests: compression.test_uncompressable_pages() added 2019-02-28 17:06:33 +03:00
Grigory Smolkin b2514b9a0a allow user to specify compress-level=0 2019-02-28 16:55:11 +03:00
Grigory Smolkin b0f8b8725f minor fix in elog message about block validation 2019-02-28 16:31:46 +03:00
Grigory Smolkin ba8410686b Version 2.0.27
- Bugfix: reading of compressed WAL files was very slow, it happened because xlogreader was in habit of reading XLOG page twice, which breaks zlib optimization for sequential access. See https://commitfest.postgresql.org/22/1994 for additional info. Reported by Alex Ignatov.
- Bugfix: previously path to PGDATA was not canonicalized. On Windows this could lead to producing empty backups. Additionally during investigation another bug was found: readdir() silently ignored 'permission denied' errors. See https://www.postgresql.org/message-id/2cad7829-8d66-e39c-b937-ac825db5203d%40postgrespro.ru for additional info. Reported by Yuri Kurenkov.
- Bugfix: archive-push didn`t use O_EXCL flag when creating '.partial' file, in rare case of two PostgreSQL instances concurrently pushing the same WAL segment it could lead to corruption of pushed WAL segment.
- Minor bugfix: disappeared during backup files were marked as 'not changed', now they just evicted from file list.
- Minor bugfix: skip 'log' directory during backup for PG >= 10. Reported by triwada.
- Improvement: previously locking was done at instance level, because of that concurrent operations were impossible, now it is done at the backup level, so restore of backup A won`t interfere with validation of backup B.
- Improvement: previously restore was relying on sort order when restoring incremental backups, now it`s relying on parent chain.
- Minor improvement: when using show command "Time" for RUNNING backups now calculated on the fly.
- Minor improvement: START LSN of backup now written to backup meta right after receiving, not at the end of the backup. It will be needed for "resume" feature.
2019-02-28 11:02:25 +03:00
Grigory Smolkin 5b69fe2833 help fix for Issue 50 2019-02-28 11:02:13 +03:00
Grigory Smolkin 2ce874c557 minor bugfix based on Issue 50: 'pg_log' in PG10 was renamed to 'log' 2019-02-28 00:30:37 +03:00
Grigory Smolkin ee6860f054 minor fix: use upper register for SQL 2019-02-27 19:16:25 +03:00
Grigory Smolkin 20de566010 tests: minor fixes 2019-02-26 21:26:30 +03:00
Grigory Smolkin c3aa3f0cff minor spell fix 2019-02-25 17:13:10 +03:00
Grigory Smolkin 94a8a24e34 minor bugfix: check that PGDATA is not empty, following https://github.com/postgrespro/pg_probackup/issues/48 2019-02-25 17:12:02 +03:00
Grigory Smolkin ec2aa7f000 tests: move all ptrack tests to ptrack module 2019-02-24 23:20:42 +03:00
Grigory Smolkin d1cb537a90 TODO about different exit codes for validation 2019-02-22 19:38:07 +03:00
Grigory Smolkin 9243a8a399 Merge branch 'pgpro-1918' 2019-02-22 19:33:41 +03:00
Grigory Smolkin 883464fdfc PGPRO-1918: added test_locking_restore_locked_without_validation() 2019-02-19 15:42:18 +03:00
Grigory Smolkin d9716e000c tests: added test_locking_restore_locked() and test_locking_concurrent_vaidate_and_backup() 2019-02-19 15:24:57 +03:00
Grigory Smolkin 2329af38bc tests: added test_validate_specific_error_intermediate_backups() 2019-02-18 21:42:56 +03:00
Grigory Smolkin f7ed67a19e tests: added test_validate_error_intermediate_backups() 2019-02-18 21:27:23 +03:00
Grigory Smolkin b826a0ae94 PGPRO-1918: be more paranoid in instance validation, orphanize descendants of all not OK backups, not only CORRUPT 2019-02-18 20:38:39 +03:00
Grigory Smolkin 8c9dcbec70 PGPRO-1918: disable wal validation for RUNNING and ERROR backups 2019-02-18 20:16:45 +03:00
Grigory Smolkin c4259b856b PGPRO-1918 tests: minor fixes 2019-02-18 20:09:09 +03:00
Grigory Smolkin ac3b0175d4 PGPRO-1918 tests: added test_locking_running_validate_2_specific_id() 2019-02-18 18:16:53 +03:00
Grigory Smolkin 49705d73f4 tests: fix test_archive_node_backup_archive_pitr_2() 2019-02-18 17:20:13 +03:00
Grigory Smolkin 0aa14030f6 tests: added test_tablespace_handling_1() and test_tablespace_handling_2() 2019-02-17 15:34:59 +03:00
Grigory Smolkin 3474784895 tests: rename some locking tests 2019-02-16 15:29:59 +03:00
Grigory Smolkin 119f118af0 tests: minor fix for PGPRO-1918 2019-02-16 15:28:22 +03:00
Grigory Smolkin 6b4f698da0 tests: more tests for backup locking 2019-02-16 15:26:37 +03:00
Grigory Smolkin 7ab3b03060 tests: fix test_ptrack_vacuum_replica() and test_ptrack_vacuum_bits_frozen_replica() 2019-02-15 19:35:51 +03:00
Grigory Smolkin 8e5e62612b tests: minor fix for test_page_backup_with_corrupted_wal_segment() 2019-02-14 18:11:27 +03:00
Grigory Smolkin fb5046343f tests: in test_minrecpoint_on_replica() wait a bit longer for shared buffer to fill in with dirty data 2019-02-12 20:10:04 +03:00
Grigory Smolkin 8bbf1f44c6 tests: minor fixes and comments for test_minrecpoint_on_replica() 2019-02-12 20:03:44 +03:00
Grigory Smolkin 841e608fa7 PGPRO-2068: tests for block from future 2019-02-12 19:52:52 +03:00
Grigory Smolkin 687677fa92 Merge branch 'pgpro_2370' 2019-02-11 20:15:50 +03:00
Grigory Smolkin d7f51ac855 tests: another minor fix for snapfs 2019-02-11 20:14:00 +03:00
Grigory Smolkin 8b8337047c tests: minor fix 2019-02-11 20:04:33 +03:00
Grigory Smolkin bed0a45121 minor bugfix: dissapeared during backup files were marked as 'not changed', now such files are removed from backup_list at the end of the backup 2019-02-09 12:19:41 +03:00
Grigory Smolkin 10b8db397a tests: minor fix to restore tests 2019-02-09 02:30:22 +03:00
Grigory Smolkin 628cdce778 PGPRO-2425: previously successfull restore was relying on that there are no failed backups between base_full_backup and dest_backup, it could lead to false-positive validation or restore errors despite the fact that parent chain is valid. There even was a small chance of data corruption: if between base_full_backup and dest_backup were located backups from parallel chain. TLDR: restore was rolling backups blindly. See test test_restore_chain_with_corrupted_backup() for an example. 2019-02-09 02:15:06 +03:00
Grigory Smolkin 2028275c10 PGPRO-2425: tests test_restore_chain_with_corrupted_backup() and test_restore_chain() added 2019-02-09 01:59:43 +03:00
Grigory Smolkin c3cf4d31fa tests: disable fsync 2019-02-08 09:34:54 +03:00
Grigory Smolkin 9256d32e8e tests: added test_drop_rel_during_backup_delta(), test_drop_rel_during_backup_page() and test_drop_rel_during_backup_ptrack() 2019-02-07 20:23:38 +03:00
Grigory Smolkin eae31a1867 write START LSN to backup meta after pg_start_backup execution 2019-02-04 16:48:14 +03:00
Grigory Smolkin ace4ca29ae PGPRO-2407: Time for RUNNING backup now calculated on the fly 2019-02-04 16:12:07 +03:00
Grigory Smolkin 62c2028a0f tests: support remote tests 2019-02-01 19:32:48 +03:00
Grigory Smolkin 29d6210408 tests: test_remote_1() added 2019-01-31 20:27:41 +03:00
Grigory Smolkin 54d05f7084 Merge branch 'master' into remote_pull 2019-01-31 19:48:41 +03:00
Grigory Smolkin 34cb9169c4 tests: module remote added 2019-01-31 19:47:44 +03:00
Grigory Smolkin 2c08cb2c2f tests: test_locking_simple_2() added 2019-01-31 18:57:28 +03:00
Grigory Smolkin 50f5e5013a tests: minor fix in test_locking_simple() 2019-01-31 18:44:26 +03:00
Grigory Smolkin 0b520603a7 Merge branch 'master' into pgpro-1918 2019-01-31 16:31:29 +03:00
Grigory Smolkin 282cf11b30 tests: test_locking_simple() added 2019-01-31 16:31:11 +03:00
Grigory Smolkin 8063652248 Merge branch 'master' into pgpro-1918 2019-01-31 12:04:48 +03:00
Grigory Smolkin abf646d0d9 tests: module "locking" added 2019-01-31 12:03:02 +03:00
Grigory Smolkin 7a90741d75 tests: fix merge 2019-01-27 18:35:57 +03:00
Grigory Smolkin c237f95dab Merge branch 'master' into remote_pull 2019-01-27 17:55:02 +03:00
Grigory Smolkin 40ef9e9b1b tests: module logging added 2019-01-25 21:33:34 +03:00
Grigory Smolkin 9bf541b853 tests: snapfs module added 2019-01-25 19:37:21 +03:00
Grigory Smolkin b38aa659bd remote backup help update 2019-01-21 17:53:50 +03:00
Grigory Smolkin 93c39d2d53 tests: test_tablespace_handling() added 2019-01-16 17:47:08 +03:00
Grigory Smolkin 1dbc0c94df tests: to pgdata_content() and add_instance() arbitrary cmdline options can now be provided 2019-01-16 16:31:26 +03:00
Grigory Smolkin 71172fb6de tests: fix test_no_control_file() which was broken by 94d7c4bb3b 2019-01-15 16:46:29 +03:00
Grigory Smolkin 8894d9f9a8 tests: fix test_empty_control_file() which was broken by 94d7c4bb3b 2019-01-15 16:40:35 +03:00
Grigory Smolkin ba53bb5a09 tests: fix test_corrupt_control_file() which was broken by 94d7c4bb3b 2019-01-15 16:36:14 +03:00
Grigory Smolkin 0fded61269 Merge branch 'master' into remote_ssh 2019-01-15 10:47:07 +03:00
Grigory Smolkin 58cd26f10a tests: slow_start() fix 2019-01-14 20:20:24 +03:00
Grigory Smolkin 4d8b6f50c9 tests: slow_start more robust behaviour 2019-01-14 19:58:15 +03:00
Grigory Smolkin 6114c47e41 Merge branch 'master' into remote_ssh 2019-01-14 13:53:41 +03:00
Grigory Smolkin 94d7c4bb3b tests: crutch-fix json parsing in show_pb() 2019-01-12 01:42:01 +03:00
Grigory Smolkin c542c61182 Merge remote-tracking branch 'origin/PGPRO-1780' 2019-01-11 19:04:31 +03:00
Grigory Smolkin 5bcea32f31 tests: comment minor fix 2019-01-11 17:54:50 +03:00
Grigory Smolkin 8300983ead Merge remote-tracking branch 'origin/origin/pgpro-2235' 2019-01-11 17:51:39 +03:00
Grigory Smolkin 01770e7e37 tests: slow_start for replicas 2019-01-11 17:21:06 +03:00
Grigory Smolkin 1b2ead72df tests: python3 minor fix 2019-01-10 18:17:03 +03:00
Grigory Smolkin 069b9c1060 tests: python 3 support 2019-01-10 18:12:00 +03:00
Grigory Smolkin 93cedf1747 tests: fix test_validate_wal_unreal_values() and test_validate_wal_lost_segment_1() 2018-12-29 12:42:59 +03:00
Grigory Smolkin c69d4ed7f8 tests: validate fix (windows support) 2018-12-28 19:26:01 +03:00
Grigory Smolkin 7d53afb1c7 tests: windows support for validate 2018-12-27 22:40:23 +03:00
Grigory Smolkin f6c1966415 tests: windows support, eschew using node.restart() 2018-12-27 17:19:23 +03:00
Grigory Smolkin 68ac0b43e2 README: Windows support in beta 2018-12-27 13:32:46 +03:00
Grigory Smolkin 8f9ca4ae9f tests: windows support for test_restore_with_tablespace_mapping_1 2018-12-27 13:18:19 +03:00
Grigory Smolkin c7dee40d13 tests: windows support for test_restore_with_tablespace_mapping_1 2018-12-27 13:04:16 +03:00
Grigory Smolkin 361d408c19 tests: support new behaviour of node.cleanup() in testgres 2018-12-27 13:00:57 +03:00
Grigory Smolkin b61df02ce1 tests: windows compatibility, cross-platform path for base_dir 2018-12-26 22:59:13 +03:00
Grigory Smolkin c1fd7ce031 minor fix 2018-12-25 22:07:54 +03:00