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

🐛 DB is cleared when service is restarted #8

Open
jaserud opened this issue Nov 22, 2021 · 0 comments
Open

🐛 DB is cleared when service is restarted #8

jaserud opened this issue Nov 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jaserud
Copy link
Contributor

jaserud commented Nov 22, 2021

DB is cleared when service is restarted in dev and qa.

Steps To Reproduce

Steps to reproduce the behaviour:

  1. Post schema to registry
  2. Get schemas by name and see it exists
  3. Restart service
  4. Get schema by name and we get nothing

Expected behaviour

DB should not be cleared when service is restarted.

Most likely what is happening here is a hibernate/jpa auto config which is dropping and recreating the db on start up:
https://docs.spring.io/spring-boot/docs/1.1.0.M1/reference/html/howto-database-initialization.html#howto-initialize-a-database-using-hibernate

@jaserud jaserud added the bug Something isn't working label Nov 22, 2021
@akachru-github akachru-github added this to the Code Monkeys - Kanban milestone Nov 23, 2021
@jaserud jaserud assigned jaserud and unassigned akachru-github Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants