Skip to content

Commit

Permalink
fix checkResumeAlreadyProcessed, object disk for create/restore prese…
Browse files Browse the repository at this point in the history
…nt only in 21.8+
  • Loading branch information
Slach committed Oct 18, 2024
1 parent 012f217 commit 6f15a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2815,7 +2815,7 @@ func testBackupSpecifiedPartitions(t *testing.T, r *require.Assertions, env *Tes
}

func (env *TestEnvironment) checkResumeAlreadyProcessed(backupCmd, testBackupName, resumeKind string, r *require.Assertions, remoteStorageType string) {
if remoteStorageType == "CUSTOM" || strings.HasPrefix(remoteStorageType, "EMBEDDED") {
if remoteStorageType == "CUSTOM" || strings.HasPrefix(remoteStorageType, "EMBEDDED") || (compareVersion(os.Getenv("CLICKHOUSE_VERSION"), "21.8") < 0 && (strings.Contains(backupCmd, "create") || strings.Contains(backupCmd, "restore"))) {
backupCmd = strings.Replace(backupCmd, "--resume", "", 1)
} else {
backupCmd = fmt.Sprintf("%s; ls -la /var/lib/clickhouse/backup/%s/%s.state2; %s", backupCmd, testBackupName, resumeKind, backupCmd)
Expand Down

0 comments on commit 6f15a45

Please sign in to comment.