diff --git a/go.mod b/go.mod index 628f1dd..09a84f3 100644 --- a/go.mod +++ b/go.mod @@ -46,4 +46,4 @@ require ( golang.org/x/net v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect -) \ No newline at end of file +) diff --git a/report/report.go b/report/report.go index d75a366..bdeaefd 100644 --- a/report/report.go +++ b/report/report.go @@ -17,7 +17,6 @@ import ( "github.com/cloudberrydb/gp-common-go-libs/operating" "github.com/cloudberrydb/gpbackup/history" "github.com/cloudberrydb/gpbackup/utils" - "github.com/pkg/errors" "gopkg.in/yaml.v2" ) @@ -298,8 +297,8 @@ func EnsureBackupVersionCompatibility(backupVersion string, restoreVersion strin restoreSemVer, err := semver.Make(restoreVersion) gplog.FatalOnError(err) if backupSemVer.GT(restoreSemVer) { - gplog.Fatal(errors.Errorf("gprestore %s cannot restore a backup taken with gpbackup %s; please use gprestore %s or later.", - restoreVersion, backupVersion, backupVersion), "") + gplog.Warn("gprestore %s cannot restore a backup taken with gpbackup %s; please use gprestore %s or later.", + restoreVersion, backupVersion, backupVersion) } } @@ -309,7 +308,7 @@ func EnsureDatabaseVersionCompatibility(backupGPDBVersion string, restoreGPDBVer backupGPDBSemVer, err := semver.Make(threeDigitVersion) gplog.FatalOnError(err) if backupGPDBSemVer.Major > restoreGPDBVersion.SemVer.Major { - gplog.Fatal(errors.Errorf("Cannot restore from GPDB version %s to %s due to catalog incompatibilities.", backupGPDBVersion, restoreGPDBVersion.VersionString), "") + gplog.Warn("Cannot restore from GPDB version %s to %s due to catalog incompatibilities.", backupGPDBVersion, restoreGPDBVersion.VersionString) } }