Actions
Defect #2973
closedMonitoring: monitoring is initialized before flyway migrations (application doesn't start)
Start date:
10/06/2021
Due date:
% Done:
100%
Estimated time:
Description
Monitoring can be initialized before flyway scripts are applied and application start ends with exception:
czechidm | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monitoringManager': Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet ... czechidm | Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet czechidm | at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:106) czechidm | at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) ... czechidm | Caused by: org.postgresql.util.PSQLException: ERROR: relation "idm_monitoring" does not exist czechidm | Position: 943 czechidm | at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2578)
Updated by Radek Tomiška about 3 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 0 to 90
Monitoring is initialized after application is fully inited by our processor (InitMonitoringProcessor).
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/03ae0b974269a796357979c5c1b535abce620ac3
Could you provide me a feedback, please?
Updated by Vít Švanda about 3 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 90 to 100
I did review. Works well, but I wasn't able simulate the original problem on my dev enviroment.
Thanks for the fix.
Updated by Radek Tomiška about 3 years ago
- Status changed from Resolved to Closed
Actions