[Geoserver-devel] Question about migration code

Hi all, need some advice.

I am working on the security migration code from 2.2.x → 2.3.x and will document the changes in

http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html

So far, so good. But I am asking myself what should happen if somebody omits version 2.2.x and updates from 2.1.x to 2.3.x ?. Should I do a two step migration, going from 2.1.x to 2.2.x and then from 2.2.x to 2.3.x ?.

Or is it sufficient to migrate in one step but giving no chance to revert since reverting is not possible for more than one minor version.

Thanks for your advice

Christian

On Sun, Dec 9, 2012 at 12:50 PM, Christian Mueller <mcrmcr21@anonymised.com> wrote:

Hi all, need some advice.

I am working on the security migration code from 2.2.x → 2.3.x and will document the changes in

http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html

So far, so good. But I am asking myself what should happen if somebody omits version 2.2.x and updates from 2.1.x to 2.3.x ?. Should I do a two step migration, going from 2.1.x to 2.2.x and then from 2.2.x to 2.3.x ?.

Or is it sufficient to migrate in one step but giving no chance to revert since reverting is not possible for more than one minor version.

So far we tried to keep GeoServer always upgradable, we have people jumping straight from 1.7 to 2.2,
it would be nice to allow this in the future.
Granted, it’s not like we test upgrade from such distant versions, in fact, we only test upgrades from
previous versions, but we have kept things simple and consistent enough that it just happens to work:
it would be really nice to have things keep on progressing this way

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Hi Andrea,

The jump from a lower version to higher version is not the problem. I am testing jumping from 2.1.x to 2.3.x. My problem is if it must be possible to go back from 2.3.x to 2.2.x. This is my headache.

Or in other words:

If somebody updates 2.1.x → 2.2.x and later goes from 2.2.x → 2.3.x, all files are there to go back from 2.3.x → 2.2.x and from 2.2.x to 2.1.x afterwards.

But if somebody updates 2.1.x → 2.3.x he cannot go back to 2.2.x (because it was never installed). Is this ok ?

2012/12/9 Andrea Aime <andrea.aime@anonymised.com>

On Sun, Dec 9, 2012 at 12:50 PM, Christian Mueller <mcrmcr21@anonymised.com> wrote:

Hi all, need some advice.

I am working on the security migration code from 2.2.x → 2.3.x and will document the changes in

http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html

So far, so good. But I am asking myself what should happen if somebody omits version 2.2.x and updates from 2.1.x to 2.3.x ?. Should I do a two step migration, going from 2.1.x to 2.2.x and then from 2.2.x to 2.3.x ?.

Or is it sufficient to migrate in one step but giving no chance to revert since reverting is not possible for more than one minor version.

So far we tried to keep GeoServer always upgradable, we have people jumping straight from 1.7 to 2.2,
it would be nice to allow this in the future.
Granted, it’s not like we test upgrade from such distant versions, in fact, we only test upgrades from
previous versions, but we have kept things simple and consistent enough that it just happens to work:
it would be really nice to have things keep on progressing this way

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Sun, Dec 9, 2012 at 3:19 PM, Christian Mueller <mcrmcr21@anonymised.com> wrote:

Hi Andrea,

The jump from a lower version to higher version is not the problem. I am testing jumping from 2.1.x to 2.3.x. My problem is if it must be possible to go back from 2.3.x to 2.2.x. This is my headache.

Or in other words:

If somebody updates 2.1.x → 2.2.x and later goes from 2.2.x → 2.3.x, all files are there to go back from 2.3.x → 2.2.x and from 2.2.x to 2.1.x afterwards.

But if somebody updates 2.1.x → 2.3.x he cannot go back to 2.2.x (because it was never installed). Is this ok ?

I believe it is, we only support moving backwards within a stable series releases (2.2.x, with x changing), there is
no guarantee that one can go back from 2.3 to 2.2, and in fact this is not normally possible

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it