Metadata table creation failure with fresh db. #1067
I am getting an exception when I have two instances of my application startup nearly simultaneously while pointing at an empty database (Postgres).
I am pretty sure this is happening because both application instances are trying to create the Metadata table at the same time when they detect there is no metadata table. One of them fails, throws an exception, and that application instance fails to start.
The log file:
2015-07-27 17:55:09.739 INFO 8682 --- [ main] o.f.c.i.metadatatable.MetaDataTableImpl : Creating Metadata table: "schema"."schema_version"
The SQL exception:
SQL State : 23505
The text was updated successfully, but these errors were encountered:
I believe the locking is ineffective if the migration has multiple statements on databases that do not have transactional DDL, such as MySQL, or if the migration is run without transactions. The locking does a
MySQL could solve both metadata creation and migration locking using
PostgreSQL could solve metadata with