Skip to content

Operator logging for database init SQL failures #3033

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

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

jmartin127
Copy link
Contributor

@jmartin127 jmartin127 commented Feb 10, 2022

If there is an error in the init SQL that runs as part of reconcileDatabaseInitSQL, then there is no way for the user to know what the error is. Adding this additional log statement will make it easier for users to know when init sql operations have succeeded and/or failed. It also brings this part of the code up to par with other similar operations in the codebase.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    No. I tried to build the Docker image locally but ran into some issues, likely because my local env is a mac I'm guessing. Any tips here would be appreciated.
    • Have you added automated tests? (n/a)

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other (logging addition)

What is the current behavior (link to any open issues here)?
Issue: #3029

What is the new behavior (if this is a feature change)?
Additional Logging to help users diagnose failures

Other Information:
None

If there is an error in the init SQL that runs as part of reconcileDatabaseInitSQL, then there is no way for the user to know what the error is.  Adding this additional log statement will make it easier for users to know when init sql operations have succeeded and/or failed.  It also brings this part of the code up to par with other similar operations in the codebase.

Issue: CrunchyData#3029
@jmartin127
Copy link
Contributor Author

jmartin127 commented Feb 28, 2022

Is there a maintainer who could review this PR? Thank you in advance.

@jmartin127
Copy link
Contributor Author

@cbandy @tjmoore4 @jmckulk Would one of you have a moment to review this PR?

@benjaminjb benjaminjb merged commit 607c1b1 into CrunchyData:master Oct 18, 2022
@benjaminjb
Copy link
Contributor

Thanks for the PR -- approved and merged! Hope that helps debug init sql issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

databaseInitSQL: SQL not being applied, perhaps logging can be improved
4 participants