View Issue Details

IDProjectCategoryView StatusLast Update
0004900SymmetricDSBugpublic2021-03-30 19:46
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.12.7 
Target Version3.12.8Fixed in Version3.12.8 
Summary0004900: Symmetric upgrade with Firebird database fails to upgrade when upgrading to 3.12
DescriptionWhen upgrading SymmetricDS to 3.12, and the database type is Firebird, the startup of the upgraded software fails to run because it is unable to drop two columns from the sym_node table because the triggers on that table are not removed first. Firebird stops the drop of the columns because of the trigger text that references the two columns.

The ultimate problem is that the code that drops the triggers as a result of the database upgrade listener trying to upgrade the symmetric tables does not execute for the symmetric tables.

The code searches in sym_trigger for the existence of trigger definitions on the symmetric tables, but the trigger definitions are not stored in the sym_trigger table, but they are dynamically created in the code.

The code needs to look up the existence of triggers in sym_trigger_hist table for the symmetric tables.
Steps To Reproduce1. Install version of SymmetricDS before 3.12.
2. Create a Firebird database node.
3. Upgrade to the 3.12 software.
4. Run the instance.
Tagsdialect: firebird, upgrade

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.12 91b68ab0

2021-03-16 21:04:40

pmarzullo

Details Diff
0004900: Symmetric upgrade with Firebird database fails to upgrade when
upgrading to 3.12
Affected Issues
0004900
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/db/AbstractSymmetricDialect.java Diff File
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/TriggerRouterService.java Diff File
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/TriggerRouterServiceSqlMap.java Diff File

SymmetricDS: 3.12 b7d25d43

2021-03-17 12:52:49

pmarzullo

Details Diff
0004900: Symmetric upgrade with Firebird database fails to upgrade when
upgrading to 3.12
Affected Issues
0004900
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/TriggerRouterService.java Diff File
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/TriggerRouterServiceSqlMap.java Diff File

Issue History

Date Modified Username Field Change
2021-03-16 21:01 pmarzullo New Issue
2021-03-16 21:01 pmarzullo Status new => assigned
2021-03-16 21:01 pmarzullo Assigned To => pmarzullo
2021-03-16 21:01 pmarzullo Tag Attached: dialect: firebird
2021-03-16 21:01 pmarzullo Tag Attached: upgrade
2021-03-16 21:05 pmarzullo Status assigned => resolved
2021-03-16 21:05 pmarzullo Resolution open => fixed
2021-03-16 21:05 pmarzullo Fixed in Version => 3.12.8
2021-03-16 22:00 pmarzullo Changeset attached => SymmetricDS 3.12 91b68ab0
2021-03-17 13:00 pmarzullo Changeset attached => SymmetricDS 3.12 b7d25d43
2021-03-30 19:46 admin Status resolved => closed