-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Store: Make bucket store initial sync more robust #6050
Store: Make bucket store initial sync more robust #6050
Conversation
cc05e2d
to
e85223b
Compare
0b5a1d4
to
7cf7292
Compare
455524f
to
e20ef21
Compare
9736806
to
94d249b
Compare
@matej-g could someone from team please review this PR? :) |
ebede3f
to
589767f
Compare
4a56ae0
to
4eed912
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small nits from my side.
4eed912
to
b56a3c0
Compare
@fpetkovski , thanks for the suggestions, I have made the changes accordingly :) |
dc58870
to
a5972ea
Compare
Added re-try mechanism for store inital sync, where if the initial sync fails, it tries to do the initial sync again for given timeout duration. Signed-off-by: Kartik-Garg <kartik.garg@infracloud.io>
a5972ea
to
720f608
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Kartik-Garg! 😊
@matej-g thanks a lot for approving it, this is going to be my first open source PR (non document related) 🎉. |
This PR closes #4810
Signed-off-by: Kartik-Garg kartik.garg@infracloud.io
Changes
This PR implements the change: If the initial sync fails for the store, it will retry the initialization using runutil.retry with default values, it retries to initialize the store every 10 seconds for 30 duration of seconds, i.e., total of three times
Verification
After starting the local minio server, started store component (quickstart gist, edited from quickstart.sh)
Store retried sync and succeeded with initial sync