Project

General

Profile

Actions

Defect #2973

closed

Monitoring: monitoring is initialized before flyway migrations (application doesn't start)

Added by Radek Tomiška over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Radek Tomiška
Category:
Monitoring
Target version:
Start date:
10/06/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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)

Actions #1

Updated by Radek Tomiška over 2 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?

Actions #2

Updated by Vít Švanda over 2 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.

Actions #3

Updated by Radek Tomiška over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF