You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Seelmann <ma...@stefan-seelmann.de> on 2014/12/23 19:29:54 UTC
Ehcache version in ApacheDS
Hi guys,
in ApacheDS we currently use ehcache-core 2.4.4.
I'd like to replace this original version with an OSGi-ified bundle, see
https://issues.apache.org/jira/browse/DIRSERVER-2039.
In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
ServiceMix provides an OSGi-ified version 2.4.3 which works in ApacheDS.
In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
ApacheDS build.
After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core but
only an 10MB "Distributed Ehcache, which includes core Ehcache and
Terracotta libraries", so that is no option IMHO.
My proposal, to solve my issue:
* Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS build
works and Studio is happy with it :)
* Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
that version.
Any concerns?
Kind Regards,
Stefan
Re: Ehcache version in ApacheDS
Posted by Emmanuel Lecharny <el...@apache.org>.
I have been told when I was young that size matters... Gettibg older, i
know it does not really matter that much ;-)
Le samedi 27 décembre 2014, Colm O hEigeartaigh <co...@apache.org> a
écrit :
>
> what is the size of this new dependency? is it 10MB life Stefan mentioned?
>>
>
> It's 6.6 MB. I really don't think the size difference justifies using a
> relatively ancient version of EhCache.
>
> Colm.
>
>
>
>>
>>> http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/2.8.5/ehcache-2.8.5.pom
>>>
>>> Colm.
>>>
>>> On Tue, Dec 23, 2014 at 6:52 PM, Stefan Seelmann <
>>> mail@stefan-seelmann.de
>>> <javascript:_e(%7B%7D,'cvml','mail@stefan-seelmann.de');>> wrote:
>>>
>>>> On 12/23/2014 07:38 PM, Emmanuel Lécharny wrote:
>>>> > Le 23/12/14 19:29, Stefan Seelmann a écrit :
>>>> >> Hi guys,
>>>> >>
>>>> >> in ApacheDS we currently use ehcache-core 2.4.4.
>>>> >>
>>>> >> I'd like to replace this original version with an OSGi-ified bundle,
>>>> see
>>>> >> https://issues.apache.org/jira/browse/DIRSERVER-2039.
>>>> >>
>>>> >> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
>>>> >> ServiceMix provides an OSGi-ified version 2.4.3 which works in
>>>> ApacheDS.
>>>> >>
>>>> >> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
>>>> >> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
>>>> >> ApacheDS build.
>>>> >>
>>>> >> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core
>>>> but
>>>> >> only an 10MB "Distributed Ehcache, which includes core Ehcache and
>>>> >> Terracotta libraries", so that is no option IMHO.
>>>> >>
>>>> >> My proposal, to solve my issue:
>>>> >> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS
>>>> build
>>>> >> works and Studio is happy with it :)
>>>> >> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
>>>> >> that version.
>>>> >
>>>> > AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
>>>> > This should be possible to use it, and I wouldfavor such a move.
>>>> >
>>>>
>>>> Ok, then I'll set it to 2.4.3 for now, that I can commit my changes for
>>>> Studio. And I create a new issue for upgrade to 2.6.9.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Colm O hEigeartaigh
>>>
>>> Talend Community Coder
>>> http://coders.talend.com
>>>
>>
>>
>>
>> --
>> Kiran Ayyagari
>> http://keydap.com
>>
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Ehcache version in ApacheDS
Posted by Kiran Ayyagari <ka...@apache.org>.
On Sat, Dec 27, 2014 at 11:54 PM, Stefan Seelmann <ma...@stefan-seelmann.de>
wrote:
> On 12/27/2014 03:34 PM, Colm O hEigeartaigh wrote:
> >> what is the size of this new dependency? is it 10MB life Stefan
> mentioned?
> >>
> >
> > It's 6.6 MB. I really don't think the size difference justifies using a
> > relatively ancient version of EhCache.
>
> Well, it would increase the ApacheDS binary distribution from now 12MB
> to 17 MB. So 6.6/17 ~= 1/3 used by the cache library from which we only
> use a small part of its functionality? On the other hand, Studio
>
yeah, this size to usage size ratio still bothers me a bit, but I will get
over it in due course ;)
> binaries size is more than 100MB ;)
>
> So I tested your patch. But I have an issue that when running mvn clean
> install of the whole ApacheDS project that the tests just hang, for
> example the ClientServerReplicationIT in server-integ. Running it alone
> works fine, but within the whole test suite it hangs. This test restarts
> the consumer service multiple times, so maybe there is an issue with
> cache initialization? Any idea?
>
> Kind Regards,
> Stefan
>
>
>
--
Kiran Ayyagari
http://keydap.com
Re: Ehcache version in ApacheDS
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 27/12/14 20:52, Colm O hEigeartaigh a écrit :
> Hi Stefan,
>
> I can appreciate that increasing the distribution size from 12 -> 17 MB
> could be problematic. I am a maven user and so this kind of consideration
> does not affect me ;-) I'll leave it up to you, if you feel that this is a
> blocker then that's ok with me. However, IMO it is not an outrageous size
> increase.
The overall size of the released package might grow by 30%, but I'm
quite sure that the JVM itself wil not load all of ehcache. In any case,
at a time where we have between 8 to 16 Gb of memory on our computers,
and 1 to 2 Gb on mobile phone, I don't see the size increase as an issue.
>
> If you are OK with the patch, then I'd like the change I made as part of
> the patch to be reviewed - namely associating the instanceId with the
> CacheManager, in case it has unintended consequences.
I'll check that.
Thanks Colm.
Re: Ehcache version in ApacheDS
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Stefan,
I can appreciate that increasing the distribution size from 12 -> 17 MB
could be problematic. I am a maven user and so this kind of consideration
does not affect me ;-) I'll leave it up to you, if you feel that this is a
blocker then that's ok with me. However, IMO it is not an outrageous size
increase.
If you are OK with the patch, then I'd like the change I made as part of
the patch to be reviewed - namely associating the instanceId with the
CacheManager, in case it has unintended consequences.
Colm.
On Sat, Dec 27, 2014 at 5:52 PM, Stefan Seelmann <ma...@stefan-seelmann.de>
wrote:
> On 12/27/2014 04:54 PM, Stefan Seelmann wrote:
> > On 12/27/2014 03:34 PM, Colm O hEigeartaigh wrote:
> >>> what is the size of this new dependency? is it 10MB life Stefan
> mentioned?
> >>>
> >>
> >> It's 6.6 MB. I really don't think the size difference justifies using a
> >> relatively ancient version of EhCache.
> >
> > Well, it would increase the ApacheDS binary distribution from now 12MB
> > to 17 MB. So 6.6/17 ~= 1/3 used by the cache library from which we only
> > use a small part of its functionality? On the other hand, Studio
> > binaries size is more than 100MB ;)
> >
> > So I tested your patch. But I have an issue that when running mvn clean
> > install of the whole ApacheDS project that the tests just hang, for
> > example the ClientServerReplicationIT in server-integ. Running it alone
> > works fine, but within the whole test suite it hangs. This test restarts
> > the consumer service multiple times, so maybe there is an issue with
> > cache initialization? Any idea?
>
> Nevermind, I run the test suite again (twice) and now it worked fine.
>
> Kind Regards,
> Stefan
>
>
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Ehcache version in ApacheDS
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 12/27/2014 04:54 PM, Stefan Seelmann wrote:
> On 12/27/2014 03:34 PM, Colm O hEigeartaigh wrote:
>>> what is the size of this new dependency? is it 10MB life Stefan mentioned?
>>>
>>
>> It's 6.6 MB. I really don't think the size difference justifies using a
>> relatively ancient version of EhCache.
>
> Well, it would increase the ApacheDS binary distribution from now 12MB
> to 17 MB. So 6.6/17 ~= 1/3 used by the cache library from which we only
> use a small part of its functionality? On the other hand, Studio
> binaries size is more than 100MB ;)
>
> So I tested your patch. But I have an issue that when running mvn clean
> install of the whole ApacheDS project that the tests just hang, for
> example the ClientServerReplicationIT in server-integ. Running it alone
> works fine, but within the whole test suite it hangs. This test restarts
> the consumer service multiple times, so maybe there is an issue with
> cache initialization? Any idea?
Nevermind, I run the test suite again (twice) and now it worked fine.
Kind Regards,
Stefan
Re: Ehcache version in ApacheDS
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 12/27/2014 03:34 PM, Colm O hEigeartaigh wrote:
>> what is the size of this new dependency? is it 10MB life Stefan mentioned?
>>
>
> It's 6.6 MB. I really don't think the size difference justifies using a
> relatively ancient version of EhCache.
Well, it would increase the ApacheDS binary distribution from now 12MB
to 17 MB. So 6.6/17 ~= 1/3 used by the cache library from which we only
use a small part of its functionality? On the other hand, Studio
binaries size is more than 100MB ;)
So I tested your patch. But I have an issue that when running mvn clean
install of the whole ApacheDS project that the tests just hang, for
example the ClientServerReplicationIT in server-integ. Running it alone
works fine, but within the whole test suite it hangs. This test restarts
the consumer service multiple times, so maybe there is an issue with
cache initialization? Any idea?
Kind Regards,
Stefan
Re: Ehcache version in ApacheDS
Posted by Colm O hEigeartaigh <co...@apache.org>.
> what is the size of this new dependency? is it 10MB life Stefan mentioned?
>
It's 6.6 MB. I really don't think the size difference justifies using a
relatively ancient version of EhCache.
Colm.
>
>> http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/2.8.5/ehcache-2.8.5.pom
>>
>> Colm.
>>
>> On Tue, Dec 23, 2014 at 6:52 PM, Stefan Seelmann <mail@stefan-seelmann.de
>> > wrote:
>>
>>> On 12/23/2014 07:38 PM, Emmanuel Lécharny wrote:
>>> > Le 23/12/14 19:29, Stefan Seelmann a écrit :
>>> >> Hi guys,
>>> >>
>>> >> in ApacheDS we currently use ehcache-core 2.4.4.
>>> >>
>>> >> I'd like to replace this original version with an OSGi-ified bundle,
>>> see
>>> >> https://issues.apache.org/jira/browse/DIRSERVER-2039.
>>> >>
>>> >> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
>>> >> ServiceMix provides an OSGi-ified version 2.4.3 which works in
>>> ApacheDS.
>>> >>
>>> >> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
>>> >> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
>>> >> ApacheDS build.
>>> >>
>>> >> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core
>>> but
>>> >> only an 10MB "Distributed Ehcache, which includes core Ehcache and
>>> >> Terracotta libraries", so that is no option IMHO.
>>> >>
>>> >> My proposal, to solve my issue:
>>> >> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS
>>> build
>>> >> works and Studio is happy with it :)
>>> >> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
>>> >> that version.
>>> >
>>> > AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
>>> > This should be possible to use it, and I wouldfavor such a move.
>>> >
>>>
>>> Ok, then I'll set it to 2.4.3 for now, that I can commit my changes for
>>> Studio. And I create a new issue for upgrade to 2.6.9.
>>>
>>>
>>>
>>
>>
>> --
>> Colm O hEigeartaigh
>>
>> Talend Community Coder
>> http://coders.talend.com
>>
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Ehcache version in ApacheDS
Posted by Kiran Ayyagari <ka...@apache.org>.
On Sat, Dec 27, 2014 at 8:46 AM, Colm O hEigeartaigh <co...@apache.org>
wrote:
> Hi Stefan,
>
> Have you seen the JIRA and patch that I have recently logged?
>
> https://issues.apache.org/jira/browse/DIRSERVER-2036
>
> It upgrades from ehcache-core (2.4.4) to ehcache 2.8.5. It is a better
> solution than relying on the version supplied by Servicemix, as the ehcache
> 2.8.5 distribution is already OSGi compliant:
>
> what is the size of this new dependency? is it 10MB life Stefan mentioned?
>
> http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/2.8.5/ehcache-2.8.5.pom
>
> Colm.
>
> On Tue, Dec 23, 2014 at 6:52 PM, Stefan Seelmann <ma...@stefan-seelmann.de>
> wrote:
>
>> On 12/23/2014 07:38 PM, Emmanuel Lécharny wrote:
>> > Le 23/12/14 19:29, Stefan Seelmann a écrit :
>> >> Hi guys,
>> >>
>> >> in ApacheDS we currently use ehcache-core 2.4.4.
>> >>
>> >> I'd like to replace this original version with an OSGi-ified bundle,
>> see
>> >> https://issues.apache.org/jira/browse/DIRSERVER-2039.
>> >>
>> >> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
>> >> ServiceMix provides an OSGi-ified version 2.4.3 which works in
>> ApacheDS.
>> >>
>> >> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
>> >> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
>> >> ApacheDS build.
>> >>
>> >> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core
>> but
>> >> only an 10MB "Distributed Ehcache, which includes core Ehcache and
>> >> Terracotta libraries", so that is no option IMHO.
>> >>
>> >> My proposal, to solve my issue:
>> >> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS build
>> >> works and Studio is happy with it :)
>> >> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
>> >> that version.
>> >
>> > AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
>> > This should be possible to use it, and I wouldfavor such a move.
>> >
>>
>> Ok, then I'll set it to 2.4.3 for now, that I can commit my changes for
>> Studio. And I create a new issue for upgrade to 2.6.9.
>>
>>
>>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>
--
Kiran Ayyagari
http://keydap.com
Re: Ehcache version in ApacheDS
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Stefan,
Have you seen the JIRA and patch that I have recently logged?
https://issues.apache.org/jira/browse/DIRSERVER-2036
It upgrades from ehcache-core (2.4.4) to ehcache 2.8.5. It is a better
solution than relying on the version supplied by Servicemix, as the ehcache
2.8.5 distribution is already OSGi compliant:
http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/2.8.5/ehcache-2.8.5.pom
Colm.
On Tue, Dec 23, 2014 at 6:52 PM, Stefan Seelmann <ma...@stefan-seelmann.de>
wrote:
> On 12/23/2014 07:38 PM, Emmanuel Lécharny wrote:
> > Le 23/12/14 19:29, Stefan Seelmann a écrit :
> >> Hi guys,
> >>
> >> in ApacheDS we currently use ehcache-core 2.4.4.
> >>
> >> I'd like to replace this original version with an OSGi-ified bundle, see
> >> https://issues.apache.org/jira/browse/DIRSERVER-2039.
> >>
> >> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
> >> ServiceMix provides an OSGi-ified version 2.4.3 which works in ApacheDS.
> >>
> >> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
> >> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
> >> ApacheDS build.
> >>
> >> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core but
> >> only an 10MB "Distributed Ehcache, which includes core Ehcache and
> >> Terracotta libraries", so that is no option IMHO.
> >>
> >> My proposal, to solve my issue:
> >> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS build
> >> works and Studio is happy with it :)
> >> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
> >> that version.
> >
> > AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
> > This should be possible to use it, and I wouldfavor such a move.
> >
>
> Ok, then I'll set it to 2.4.3 for now, that I can commit my changes for
> Studio. And I create a new issue for upgrade to 2.6.9.
>
>
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Ehcache version in ApacheDS
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 12/23/2014 07:38 PM, Emmanuel Lécharny wrote:
> Le 23/12/14 19:29, Stefan Seelmann a écrit :
>> Hi guys,
>>
>> in ApacheDS we currently use ehcache-core 2.4.4.
>>
>> I'd like to replace this original version with an OSGi-ified bundle, see
>> https://issues.apache.org/jira/browse/DIRSERVER-2039.
>>
>> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
>> ServiceMix provides an OSGi-ified version 2.4.3 which works in ApacheDS.
>>
>> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
>> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
>> ApacheDS build.
>>
>> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core but
>> only an 10MB "Distributed Ehcache, which includes core Ehcache and
>> Terracotta libraries", so that is no option IMHO.
>>
>> My proposal, to solve my issue:
>> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS build
>> works and Studio is happy with it :)
>> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
>> that version.
>
> AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
> This should be possible to use it, and I wouldfavor such a move.
>
Ok, then I'll set it to 2.4.3 for now, that I can commit my changes for
Studio. And I create a new issue for upgrade to 2.6.9.
Re: Ehcache version in ApacheDS
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 23/12/14 19:29, Stefan Seelmann a écrit :
> Hi guys,
>
> in ApacheDS we currently use ehcache-core 2.4.4.
>
> I'd like to replace this original version with an OSGi-ified bundle, see
> https://issues.apache.org/jira/browse/DIRSERVER-2039.
>
> In 2.4.x branch the latest is 2.4.8 from Sep 2012, so quite old.
> ServiceMix provides an OSGi-ified version 2.4.3 which works in ApacheDS.
>
> In 2.6.x branch the latest is 2.6.9 from April 2014, so quite fresh.
> ServiceMix provides an OSGi-ified version 2.6.9, but that breaks the
> ApacheDS build.
>
> After 2.6.x (2.7.x, 2.8.x, 2.9.x) there exists no small ehcache-core but
> only an 10MB "Distributed Ehcache, which includes core Ehcache and
> Terracotta libraries", so that is no option IMHO.
>
> My proposal, to solve my issue:
> * Replace ehcache-core 2.4.4 with 2.4.3 from ServiceMix. ApacheDS build
> works and Studio is happy with it :)
> * Investigate why 2.6.9 doesn't work and try to fix it and upgrade to
> that version.
AFAIR, 2.6.9 has a changed API, which requires a bit of refactoring.
This should be possible to use it, and I wouldfavor such a move.