[JBoss JIRA] (ISPN-5857) HotRod client should use the consistent hash in replicated mode
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-5857?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-5857:
-----------------------------------------------
Vaclav Dedik <vdedik(a)redhat.com> changed the Status of [bug 1272390|https://bugzilla.redhat.com/show_bug.cgi?id=1272390] from MODIFIED to ON_QA
> HotRod client should use the consistent hash in replicated mode
> ---------------------------------------------------------------
>
> Key: ISPN-5857
> URL: https://issues.jboss.org/browse/ISPN-5857
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.0.1.Final, 8.1.0.Alpha1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Critical
> Labels: hotrod
> Fix For: 8.1.0.Alpha2, 8.1.0.Final
>
>
> The HotRod server assumes that in replicated mode the server accessed by the client doesn't matter, so it doesn't send a consistent hash in the topology updates.
> However, since replicated mode is now implemented on top of distributed mode, hitting the primary owner or another node makes a big difference. We should change the server to send the consistent hash for replicated caches as well.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ISPN-6042) NPE when using avg on repeated property and one group does not contain any value
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-6042?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-6042:
-----------------------------------------------
Vaclav Dedik <vdedik(a)redhat.com> changed the Status of [bug 1295516|https://bugzilla.redhat.com/show_bug.cgi?id=1295516] from MODIFIED to ON_QA
> NPE when using avg on repeated property and one group does not contain any value
> --------------------------------------------------------------------------------
>
> Key: ISPN-6042
> URL: https://issues.jboss.org/browse/ISPN-6042
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 8.1.0.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.2.0.Alpha1, 8.1.1.Final
>
>
> Adding this test to QueryDslConditionsTest results in NPE:
> {code}
> public void testEmbeddedAvg() {
> QueryFactory qf = getQueryFactory();
> Query q = qf.from(getModelFactory().getUserImplClass())
> .select(Expression.property("surname"), Expression.avg("addresses.number"))
> .groupBy("surname")
> .orderBy("surname")
> .build();
> List<Object[]> list = q.list();
> assertEquals(3, list.size());
> assertEquals(2, list.get(0).length);
> assertEquals(2, list.get(1).length);
> assertEquals(2, list.get(2).length);
> assertEquals(156d, (Double) list.get(0)[1], 0.0001d);
> assertEquals(150d, (Double) list.get(1)[1], 0.0001d);
> assertEquals(null, list.get(2)[1]);
> }
> {code}
> {code}
> java.lang.NullPointerException
> at org.infinispan.objectfilter.impl.aggregation.AvgAccumulator.merge(AvgAccumulator.java:39)
> at org.infinispan.objectfilter.impl.aggregation.FieldAccumulator.merge(FieldAccumulator.java:42)
> at org.infinispan.objectfilter.impl.aggregation.Grouper.addRow(Grouper.java:133)
> at org.infinispan.query.dsl.embedded.impl.AggregatingQuery.getBaseIterator(AggregatingQuery.java:52)
> at org.infinispan.query.dsl.embedded.impl.HybridQuery$1.<init>(HybridQuery.java:47)
> at org.infinispan.query.dsl.embedded.impl.HybridQuery.getIterator(HybridQuery.java:45)
> at org.infinispan.query.dsl.embedded.impl.BaseEmbeddedQuery.listInternal(BaseEmbeddedQuery.java:65)
> at org.infinispan.query.dsl.embedded.impl.BaseEmbeddedQuery.list(BaseEmbeddedQuery.java:57)
> at org.infinispan.query.dsl.embedded.impl.DelegatingQuery.list(DelegatingQuery.java:45)
> at org.infinispan.query.dsl.embedded.QueryDslConditionsTest.testEmbeddedAvg(QueryDslConditionsTest.java:2066)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years