From 0ef2aa0860647c77372901b1a1d5b162e280537f Mon Sep 17 00:00:00 2001 From: Slach Date: Tue, 30 Jul 2024 20:29:37 +0400 Subject: [PATCH] debug https://github.com/Altinity/clickhouse-backup/issues/888, debug disk_s3 --- test/integration/integration_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index 4e5daeaf..61996dbf 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -469,6 +469,14 @@ func NewTestEnvironment(t *testing.T) (*TestEnvironment, *require.Assertions) { func (env *TestEnvironment) Cleanup(t *testing.T, r *require.Assertions) { env.ch.Close() + out, err := env.DockerExecOut("minio", "bash", "-ce", "ls -lh /bitnami/minio/data/clickhouse/") + t.Log(t.Name(), "DEBUG", out) + r.NoError(err) + + if t.Name() == "TestIntegrationS3" { + env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/disk_s3") + } + if t.Name() == "TestRBAC" || t.Name() == "TestConfigs" || t.Name() == "TestIntegrationEmbedded" { env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/backups_s3") } @@ -2403,11 +2411,8 @@ func (env *TestEnvironment) runMainIntegrationScenario(t *testing.T, remoteStora log.Debug("Clean before start") fullCleanup(t, r, env, []string{fullBackupName, incrementBackupName}, []string{"remote", "local"}, databaseList, false, false, backupConfig) - env.DockerExecNoError(r, "minio", "mc", "ls", "local/clickhouse/disk_s3") testData := generateTestData(t, r, env, remoteStorageType, defaultTestData) - env.DockerExecNoError(r, "minio", "mc", "ls", "local/clickhouse/disk_s3") - log.Debug("Create backup") env.DockerExecNoError(r, "clickhouse-backup", "clickhouse-backup", "-c", "/etc/clickhouse-backup/"+backupConfig, "create", "--tables", tablesPattern, fullBackupName)