From 6a8ee9224560e56818f2a6b43ee6d1b7b4a44127 Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Fri, 1 Nov 2024 16:15:12 +0500 Subject: [PATCH] test --- end_to_end/end_to_end_suite_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/end_to_end/end_to_end_suite_test.go b/end_to_end/end_to_end_suite_test.go index 00f26a3af..67628c63f 100644 --- a/end_to_end/end_to_end_suite_test.go +++ b/end_to_end/end_to_end_suite_test.go @@ -2669,6 +2669,23 @@ LANGUAGE plpgsql NO SQL;`) assertArtifactsCleaned("20240730085053") testhelper.AssertQueryRuns(restoreConn, "DROP TABLE a; DROP TABLE b; DROP TABLE c; DROP TABLE d;") }) + It("Will not hang and fatal error after helper error on resize-restore with jobs", func() { + command := exec.Command("tar", "-xzf", "resources/4-segment-db-single-backup-dir.tar.gz", "-C", backupDir) + mustRunCommand(command) + command = exec.Command("mv", + path.Join(backupDir, "4-segment-db-single-backup-dir/backups/20240730/20240730085053/gpbackup_0_20240730085053_16417.gz"), + path.Join(backupDir, "4-segment-db-single-backup-dir/backups/20240730/20240730085053/gpbackup_0_20240730085053_16417.gz.1")) + mustRunCommand(command) + gprestoreCmd := exec.Command(gprestorePath, + "--timestamp", "20240730085053", + "--redirect-db", "restoredb", + "--backup-dir", path.Join(backupDir, "4-segment-db-single-backup-dir"), + "--resize-cluster", "--on-error-continue", "--jobs", "3") + output, _ := gprestoreCmd.CombinedOutput() + Expect(string(output)).To(ContainSubstring(`[ERROR]:-Encountered errors with 1 helper agent(s)`)) + assertArtifactsCleaned("20240730085053") + testhelper.AssertQueryRuns(restoreConn, "DROP TABLE a; DROP TABLE b; DROP TABLE c; DROP TABLE d;") + }) }) Describe("Restore indexes and constraints on exchanged partition tables", func() { BeforeEach(func() {