Skip to content

Download and Upload command doesn't close properly download.state2 / upload.state2 files #1304

@Slach

Description

@Slach

when upload/download command failed for any reason in server mode, resumable_state.Close() didn't call
next command with the same backup will stuck

oroutine 4479 [sleep]:
time.Sleep(0x2faf080)
    runtime/time.go:363 +0x150
go.etcd.io/bbolt.flock(0x40002c9700?, 0x1, 0x0)
    go.etcd.io/bbolt@v1.4.3/bolt_unix.go:45 +0x8c
go.etcd.io/bbolt.Open({0x40002c9700, 0x40}, 0x180, 0x0)
    go.etcd.io/bbolt@v1.4.3/db.go:248 +0x3f4
github.com/Altinity/clickhouse-backup/v2/pkg/resumable.NewState(...)
    github.com/Altinity/clickhouse-backup/v2/pkg/resumable/state.go:27
github.com/Altinity/clickhouse-backup/v2/pkg/backup.(*Backuper).Download(...)
    github.com/Altinity/clickhouse-backup/v2/pkg/backup/download.go:162
...
github.com/Altinity/clickhouse-backup/v2/pkg/server.(*APIServer).actionsAsyncCommandsHandler.func1()
    github.com/Altinity/clickhouse-backup/v2/pkg/server/server.go:423 +0x70

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions