Skip to content

Minio restarting causes unhealthy mysql-primary #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/manager/storage/minio_stor.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ def __init__(self, envs=os.environ):
access_key=self.access_key,
secret_key=self.secret_key,
secure=is_tls)
try:
self.client.make_bucket(self.bucket, location=self.location)
except minioerror.BucketAlreadyOwnedByYou:
pass

@debug
def get_backup(self, backup_id):
Expand All @@ -49,5 +45,9 @@ def put_backup(self, backup_id, infile):
"""
Upload the backup file to the expected path.
"""
try:
self.client.make_bucket(self.bucket, location=self.location)
except minioerror.BucketAlreadyOwnedByYou:
pass
self.client.fput_object(self.bucket, backup_id, infile)
return backup_id