You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "l.penet@senat.fr" <l....@senat.fr> on 2015/10/02 10:33:06 UTC

Parallel deployment version selection

Hi.

I am using parallel deployment to upgrade my webapps with no downtime.

I just have a small issue / question on how the latest version is selected.

As far as I understand, the container select the latest version by 
lexicographically ordering the version string.

So if

webapp##1.0.51

and

webapp##1.0.52

are deployed version 1.0.52 will be selected.

I just have a periodic issue with versions ranging from 1.0.1, 
1.0.2,...1.0.9 and then jumping to 1.0.10 (same thing for hundreds of 
course) : 1.0.9 is prefered to 1.0.10 because 9 is after 1.

Is there a way to configure tomcat so that it analyses the version part 
as a triplet of numbers ? And so understand that 10 is more recent than 9 ?

Thanks in advance,

Ludovic

|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Parallel deployment version selection

Posted by Ludovic Pénet <l....@senat.fr>.
Not always predictable (you expect no more than 99 versions and finally have).

Can be against conventions.



Le 2 octobre 2015 13:07:15 GMT+02:00, David kerber <dc...@verizon.net> a écrit :
>On 10/2/2015 4:33 AM, l.penet@senat.fr wrote:
>> Hi.
>>
>> I am using parallel deployment to upgrade my webapps with no
>downtime.
>>
>> I just have a small issue / question on how the latest version is
>selected.
>>
>> As far as I understand, the container select the latest version by
>> lexicographically ordering the version string.
>>
>> So if
>>
>> webapp##1.0.51
>>
>> and
>>
>> webapp##1.0.52
>>
>> are deployed version 1.0.52 will be selected.
>>
>> I just have a periodic issue with versions ranging from 1.0.1,
>> 1.0.2,...1.0.9 and then jumping to 1.0.10 (same thing for hundreds of
>> course) : 1.0.9 is prefered to 1.0.10 because 9 is after 1.
>>
>> Is there a way to configure tomcat so that it analyses the version
>part
>> as a triplet of numbers ? And so understand that 10 is more recent
>than 9 ?
>
>Why not format your versions differently, to see 1.0.09?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org

-- 
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: Parallel deployment version selection

Posted by David kerber <dc...@verizon.net>.
On 10/2/2015 4:33 AM, l.penet@senat.fr wrote:
> Hi.
>
> I am using parallel deployment to upgrade my webapps with no downtime.
>
> I just have a small issue / question on how the latest version is selected.
>
> As far as I understand, the container select the latest version by
> lexicographically ordering the version string.
>
> So if
>
> webapp##1.0.51
>
> and
>
> webapp##1.0.52
>
> are deployed version 1.0.52 will be selected.
>
> I just have a periodic issue with versions ranging from 1.0.1,
> 1.0.2,...1.0.9 and then jumping to 1.0.10 (same thing for hundreds of
> course) : 1.0.9 is prefered to 1.0.10 because 9 is after 1.
>
> Is there a way to configure tomcat so that it analyses the version part
> as a triplet of numbers ? And so understand that 10 is more recent than 9 ?

Why not format your versions differently, to see 1.0.09?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org