Skip to content

Commit

Permalink
[wip] debug wrong disks table parts creation and empty files upload, …
Browse files Browse the repository at this point in the history
…locally reproduced #676
  • Loading branch information
Slach committed Jun 26, 2023
1 parent ab4011a commit e9bca26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func (b *Backuper) AddTableToBackup(ctx context.Context, backupName, shadowBacku
return nil, nil, fmt.Errorf("backupName is not defined")
}

if !strings.HasSuffix(table.Engine, "MergeTree") && table.Engine != "MaterializedMySQL" && table.Engine != "MaterializedPostgreSQL" {
if !strings.HasSuffix(table.Engine, "MergeTree") && table.Engine != "MaterializedMySQL" && table.Engine != "MaterializedPostgreSQL" && table.Engine != "MaterializedView" {
log.WithField("engine", table.Engine).Warnf("supports only schema backup")
return nil, nil, nil
}
Expand Down
3 changes: 3 additions & 0 deletions test/integration/config-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ general:
- "_temporary_and_external_tables.*"
restore_schema_on_cluster: "{cluster}"
clickhouse:
# wrong disk name mapping for https://github.com/Altinity/clickhouse-backup/issues/676
disk_mapping:
default-gp3: /var/lib/clickhouse
host: 127.0.0.1
port: 9440
username: backup
Expand Down
2 changes: 2 additions & 0 deletions test/integration/docker-compose_advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ services:
MINIO_ROOT_PASSWORD: it-is-my-super-secret-key
volumes:
- ./minio_nodelete.sh:/bin/minio_nodelete.sh
ports:
- "9001:9001"
networks:
- clickhouse-backup

Expand Down

0 comments on commit e9bca26

Please sign in to comment.