Skip to content
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

Non-existing DB automatic creation #64

Open
kkujaw opened this issue Oct 17, 2024 · 1 comment · May be fixed by #66
Open

Non-existing DB automatic creation #64

kkujaw opened this issue Oct 17, 2024 · 1 comment · May be fixed by #66

Comments

@kkujaw
Copy link
Collaborator

kkujaw commented Oct 17, 2024

Case: When a user creates a Manager configuration and specifies a database name that does not exist, the database is created automatically.

Screenshot 2024-10-17 at 09 58 01

Expected:

  • User should be aware, that provided DB does not exist
  • Handled by some configuration, like when DB does not exist, decide if it has to be created automatically, or skip the creation and handle correctly the user notification.
@witang9
Copy link

witang9 commented Nov 8, 2024

This is fully expected behavior of MongoDB. If a database does not exist, MongoDB creates it the first time you store data for that database, so I believe restricting this with additional configuration is unnecessary, as it will never cause an error. Nevertheless, in the linked merge request, I added a log warning to highlight when a given database does not exist.

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 a pull request may close this issue.

2 participants