Project

General

Profile

Actions

Defect #3189

closed

Flyway scripts not executed on application startup

Added by Peter Štrunc over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Peter Štrunc
Category:
Database
Target version:
Start date:
09/01/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Since the introduction of multiple data sources, we are running into an issue where flyway scripts are not executed on application startup. The issue seems to be with loading module-specific configurations.

The goal of this ticket is to fix loading of module flyway configurations.
Actions #1

Updated by Tomáš Doischer over 1 year ago

  • Sprint set to Sprint 12.3-3 (srp 31 - zář 14)
Actions #2

Updated by Peter Štrunc over 1 year ago

  • Status changed from New to In Progress
Actions #3

Updated by Peter Štrunc over 1 year ago

  • Status changed from In Progress to Needs feedback
  • % Done changed from 0 to 80

I managed to fix the issue. The problem was caused by some possible circular dependencies, which prevented IdmFlywayPostProcessor from processing Flyway migrations.

This article proved to be very helpful: https://synyx.de/blog/bean-x-of-type-y-is-not-eligible-for-getting-processed-by-all-beanpostprocessors/

The merge request is here: https://github.com/bcvsolutions/CzechIdMng/pull/260

@doischert would you please check it out?

Actions #4

Updated by Tomáš Doischer over 1 year ago

  • % Done changed from 80 to 90

LGTM, merged to develop. The hotfix branch was merged to master.

Actions #5

Updated by Tomáš Doischer over 1 year ago

  • Status changed from Needs feedback to Resolved
  • % Done changed from 90 to 100
Actions #6

Updated by Tomáš Doischer about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF