-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Freeze the s3 APIs until the notification sub-system initializes completely #17182
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
Freeze the s3 APIs until the notification sub-system initializes completely #17182
Conversation
22eb745 to
94b0a3a
Compare
|
@harshavardhana Can we print the startup message once all the initializations return? Because, with this change, we can't see Can we display the startup message only after all the go-routines return (ie, wg.Wait) |
|
This is not yet correct @Praveenrajmani let me send an update to this branch. |
42d02c0 to
2b6b349
Compare
|
@Praveenrajmani see what I wanted to do here. Mostly this would work if you can give this a test. |
…letely Currently, we will miss the events if MinIO server receives the API requests before the notification sub-system is initialized and the bucket target rules are populated. This PR will freeze the APIs until these subsystems get completely initialized.
unfreeze after bucket metadata has been loaded.
2b6b349 to
54a6d25
Compare
|
yes, this works @harshavardhana |
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.
LGTM
|
LGTM |
Description
Currently, we will miss the events if MinIO server receives the API requests before the notification sub-system is initialized and the bucket target rules are populated.
This PR will freeze the APIs until these subsystems get completely initialized.
Motivation and Context
How to test this PR?
masterapply the following diff to simulate the config subsystem and bucket target rules time lag.Types of changes
Checklist:
commit-idorPR #here)