You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes database is not accessible when application starts. In a Spring Boot app, HikariCP can handle this and can postpone it's initialization until the database come up.
This behavior is very useful in dynamic environments (eg Kubernetes) or when the application has specific functions which does not depend on database.
ShedLock selects SQL dialect on the basis of DB connection metadata at startup. With 'useDbTime' is set to true, this prevents application startup as LockProvider cannot be instantiated.
If 'useDbTime' is set to false and product name couldn't be determined, it falls back to generic SqlStatementsSource. This could cause different behavior with PostgreSQL as it has specific SqlStatementSource also for dbtime-less mode.
One solution can be to allow explict set of databaseProductName to JdbcTemplateLockProvider.Configuration.Builder
Another is to make SqlStatementsSource selection lazy.
The text was updated successfully, but these errors were encountered:
Sometimes database is not accessible when application starts. In a Spring Boot app, HikariCP can handle this and can postpone it's initialization until the database come up.
This behavior is very useful in dynamic environments (eg Kubernetes) or when the application has specific functions which does not depend on database.
ShedLock selects SQL dialect on the basis of DB connection metadata at startup. With 'useDbTime' is set to true, this prevents application startup as LockProvider cannot be instantiated.
If 'useDbTime' is set to false and product name couldn't be determined, it falls back to generic SqlStatementsSource. This could cause different behavior with PostgreSQL as it has specific SqlStatementSource also for dbtime-less mode.
One solution can be to allow explict set of databaseProductName to JdbcTemplateLockProvider.Configuration.Builder
Another is to make SqlStatementsSource selection lazy.
The text was updated successfully, but these errors were encountered: