-
Notifications
You must be signed in to change notification settings - Fork 245
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
Attempt to continue when encountering errors in createDBIfNotExist #258
Conversation
The database might already exist even if we encounter errors in createDBIfNotExist, so instead of erroring out, log warnings and attempt to continue. Signed-off-by: Morten Lied Johansen <[email protected]>
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.
I am pretty sure this will crash on error as-is.
You are entirely right, not sure how I missed that. Serves me right for trying to crank it out just before bedtime 🙂. I'll take another pass over this today if I get the time. |
…ction Signed-off-by: Morten Lied Johansen <[email protected]>
Signed-off-by: Morten Lied Johansen <[email protected]>
@brandond I think I'm happy with this now, anything you think should be changed? |
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.
one nit on the log message, lgtm otherwise!
Co-authored-by: Brad Davidson <[email protected]> Signed-off-by: Morten Lied Johansen <[email protected]>
The database might already exist even if we encounter errors in createDBIfNotExist, so instead of erroring out, log warnings and attempt to continue.
Fixes k3s-io/k3s#9033