-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Crash when MinIO bucket does not have versioning enabled #545 #546
Crash when MinIO bucket does not have versioning enabled #545 #546
Conversation
a5998bb
to
91f72a3
Compare
That's a fine interpretation.
I'm surprised that throwing an exception in configure wouldn't propagate to
Main idea seems grand :-) - thanks for working on this! |
I made a change here where the main server is called: Whether I start using |
Ah, sounds like node is waiting for something to finish up. Maybe |
I attempted the below patch, with no luck, the process does not exit despite the server being closed: |
Hmm, if I throw an exception just before the call to |
You're right, that works in production mode and that seems reasonable like this. I cherry-picked the commit and removed the |
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.
Looks good, thank you! A minio server is set up in .github/workflows/main.yml
and some tests are run against it, so a test could be added for this fail-fast feature. But it feels like it could be a bit cumbersome, and the consequences of failure seem very minor, I'm ok accepting this without automated tests.
@fflorent let me know if you'd like this landed as is, or if you have ambitions to write a test for it (your call, not essential in this case in my opinion). |
OK then, I am OK merging without tests. |
Fixes #545
Notes for the reviewers:
ICreate#configure()
method is to proceed to some checks before installing the document-related endpoint, based on this comment, is it OK for you?process.exit()
. However I feel like just throwing an exception (and thus disallowing using the/docs
endpoint) can be also reasonable.Thanks in advance for your help 🙏