Skip to content

Commit

Permalink
Add comment, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
proggga committed Sep 14, 2021
1 parent 1d2d657 commit 2b32c61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e -x

. /usr/local/export_common.sh

export WALE_S3_PREFIX=s3://mysqlfullxtrabackupbucket
export WALE_S3_PREFIX=s3://mysqlfullxtrabackupbucketwithranges


mysqld --initialize --init-file=/etc/mysql/init.sql
Expand Down
3 changes: 3 additions & 0 deletions pkg/storages/s3/s3reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func (reader *s3Reader) reconnect() error {
return nil
}

// THIS COde stolen from s3 lib, from vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go
// func (d DefaultRetryer) RetryRules( .. ) time.Duration
// this calculate sleep duration (jitter and exponential backoff)
func (reader *s3Reader) getIncrSleep(retryCount int) time.Duration {
minDelay := reader.minRetryDelay
maxDelay := reader.maxRetryDelay
Expand Down

0 comments on commit 2b32c61

Please sign in to comment.