<br><br>On Tue, Apr 15, 2014 at 5:29 PM, Radim Vansa <rvansa@redhat.com> wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">
On 04/15/2014 02:31 PM, Galder Zamarreño wrote:
<blockquote> On 09 Apr 2014, at 19:38, Dan Berindei <dan.berindei@gmail.com> wrote:
<blockquote>
On Wed, Apr 9, 2014 at 5:37 PM, Galder Zamarreño <galder@redhat.com> wrote:
<blockquote> On 03 Apr 2014, at 11:38, Radim Vansa <
rvansa@redhat.com
<blockquote> wrote:
</blockquote>
Hi,
looking on the new configuration parser, I've noticed that you cannot
configure ConsistentHashFactory anymore - is this by purpose?
^ Rather than being something the users should be tweaking, it’s something that’s used internally. So, I applied a bit of if-in-doubt-leave-it-out logic. I don’t think we lose any major functionality with this.
</blockquote> For now it's the only way for the user to use the SyncConsistentHashFactory, so it's not used just internally.
</blockquote> What’s the use case for that? The javadoc is not very clear on the benefits of using it.
</blockquote>
One use case I've noticed is having two caches with same keys, and
modification listener handler retrieving data from the other cache. In
order to execute the listener soon, you don't want to execute remote
gets, and therefore, it's useful to have the hashes synchronized.
</div></blockquote><div><br></div><div>Erik is using it with distributed tasks. Normally, keys with the same group in multiple caches doesn't guarantee you that the keys are all located on the same nodes, which means we can't guarantee that a distributed task that accesses multiple caches has all the keys it needs locally just with grouping. SyncConsistentHashFactory fixes that.</div><div><br></div><br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">
Radim
<blockquote>
<blockquote><blockquote>
Another my concern is the fact that you enable stuff by parsing the
element - for example L1. I expect that omitting the element and setting
it with the default value (as presented in XSD) makes no difference, but
this is not how current configuration works.
L1 is disabled by default. You enable it by configuring the L1 lifespan to be bigger than 0. The attribute definition follows the pattern that Paul did for the server side.
My opinion comes probably too late as the PR was already reviewed,
discussed and integrated, but at least, please clearly describe the
behaviour in the XSD. The fact that l1-lifespan "Defaults to 10
minutes." is not correct - it defaults to L1 being disabled.
Yeah, I’ll update the XSD and documentation accordingly:
<a href="https://issues.jboss.org/browse/ISPN-4195">https://issues.jboss.org/browse/ISPN-4195</a>
Cheers
Thanks
Radim
--
Radim Vansa <rvansa@redhat.com>
JBoss DataGrid QA
_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
--
Galder Zamarreño
galder@redhat.com
twitter.com/galderz
_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</blockquote> _______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</blockquote>
--
Galder Zamarreño
galder@redhat.com
twitter.com/galderz
_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</blockquote>
<div>--
</div>Radim Vansa <rvansa@redhat.com>
JBoss DataGrid QA
_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</div></blockquote>