cancel
Showing results for 
Search instead for 
Did you mean: 

Rolling update - increasing version does not work

christoph_probst
Active Participant
0 Kudos
701

using Hybris 5.4 and hsqldb

the createtypesystem ant taks throws an error if it is executed when already having db.type.system.name set and increasing the version number.

steps to reproduce: requires standard hybris 5.4 installation (db already initialized)

execute ant target:

ant createtypesystem -DtypeSystemName=1.2.0

add the follwoing line to the local.properties file:

db.type.system.name=1.2.0

execute the ant target again with another version:

ant createtypesystem -DtypeSystemName=1.3.0

the following exception is thrown:

 ..\build.xml:152: java.lang.IllegalStateException: Source type system '1.2.0' doesn't exist.
         at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
         at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.requireExistenceOfTypeSystem(TypeSystemHelper.java:248)
         at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.getCopyTypeSystemStatements(TypeSystemHelper.java:134)
         at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.copyTypeSystem(TypeSystemHelper.java:105)
         at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.createTypeSystemBasedOnCurrentTypeSystem(TypeSystemHelper.java:69)
         at de.hybris.ant.taskdefs.init.TypeSystemCreatorTask.executeTypeSystemTask(TypeSystemCreatorTask.java:37)
         at de.hybris.ant.taskdefs.init.AbstractTypeSystemTask.execute(AbstractTypeSystemTask.java:28)

i traced it back to follwing query which only returns DEFAULT but not 1.2.0

select distinct typesystemname from ydeployments

Is this behavior intended or am I using the feature the wrong way?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

the same problemm :((

Former Member
0 Kudos

We'll have a look into it. From what I it should have worked for you.