Percona-Lab / mongodb_consistent_backup

A tool for performing consistent backups of MongoDB Clusters or Replica Sets
https://www.percona.com
Apache License 2.0
276 stars 81 forks source link

Fix upload stall error introduced with S3 throttle #299

Closed dschneller closed 5 years ago

dschneller commented 5 years ago

A break statement was accidentally unindented one level too far, introducing a bug when looking for multipart upload ids. Sorry for that :) It led to multipart chunks being missed and the overall upload never finishing. Throw an error in case the multipart upload is not found on S3 anymore, for example due to manual aborts with the AWS CLI tool. In these cases the backup could hang forever, too.

Also: Increase the number of callbacks for throttling, because on very fast connections the previous block size of 2MB was to coarse.