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
Motivation:
The since dCache have migrated to liquibase4, some incomatibilies have
been observed in srm and spacemanager db schema migrations.
- new way of calculating checksums (with vs without spaces)
- liqubase uses id+author to identify changesets. In case of collisions
the behaviour is unpredictable, in particular, with liquibase 4.xx the
wrong changeset is selected for validation.
Modification:
Add DB specific conditional statement to explicitly handle incompatibility.
To ensure unique author+id combination. Add a concept of changeset-pre that will
update checksums in databasechangelog to match new calculation rules
(whitespace included vs excluded) and match checksums to new ids.
`dcache database update` command as well as auto-migrate are updates to
apply `pre` changes before the main change set.
Result:
srm and space manager databases can be migrated without issues
Fixes: #7930
Acked-by: Dmitry Litvintsev
Target: master, 11.1, 11.0
Require-book: no
Require-notes: yes
(cherry picked from commit 14a743e)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Copy file name to clipboardExpand all lines: modules/dcache-spacemanager/src/main/resources/diskCacheV111/services/space/db/spacemanager.changelog-2.9.xml
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@
105
105
</rollback>
106
106
</changeSet>
107
107
108
-
<changeSetid="1"author="behrmann">
108
+
<changeSetid="1.1"author="behrmann">
109
109
<comment>Replace free space column with available space column</comment>
0 commit comments