cybozu-go / moco

MySQL operator on Kubernetes using GTID-based semi-synchronous replication.
https://cybozu-go.github.io/moco/
Apache License 2.0
278 stars 22 forks source link

A backup of another sourcename with the same prefix is restored. #647

Closed yoheinbb closed 8 months ago

yoheinbb commented 8 months ago

Describe the bug If there are backups with sourcename xx-1 and xx-11, restoring by specifying xx-1 and after the last date and time of the xx-1 backup will restore xx-11.

Expected behavior If sourcename is xx-1, only the backup of xx-1 is restored.

Additional context Backup paths xx-1 and xx-11 are both listed because the object is retrieved by prefix. https://github.com/cybozu-go/moco/blob/1e5089dea41fa1127210ed7cba70f6f6070a1d60/pkg/bucket/s3.go#L112-L120

morimoto-cybozu commented 8 months ago

Resolved by https://github.com/cybozu-go/moco/pull/648.