Skip to content

🐛 DB is cleared when service is restarted #8

@jaserud

Description

@jaserud

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions