[JBoss JIRA] (ISPN-6077) AddCache dialog only offers cache templates from "clustered" cache container
by Martin Gencur (JIRA)
Martin Gencur created ISPN-6077:
-----------------------------------
Summary: AddCache dialog only offers cache templates from "clustered" cache container
Key: ISPN-6077
URL: https://issues.jboss.org/browse/ISPN-6077
Project: Infinispan
Issue Type: Bug
Components: Console
Affects Versions: 8.1.0.Final
Reporter: Martin Gencur
When adding a new cache, the "Base configuration" element only shows options from a cache container named "clustered". If there are different cache containers in the configuration, the select element does not show anything.
The problem is getConfigurationTemplates function in infinispan-management-console/src/main/webapp/components/api/cache-creation-controller.service.js which should take into account different cache container names.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6076) Errors when the same column is both a gouping column and an aggregation column
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6076?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6076:
--------------------------------
Description:
This should not be allowed.
{code}
public void testGroupingAndAggregationOnSameField() {
QueryFactory qf = getQueryFactory();
Query q = qf.from(getModelFactory().getUserImplClass())
.select(Expression.count("surname"), Expression.sum("addresses.number"))
.groupBy("surname")
.build();
List<Object[]> list = q.list(); // throws ClassCastException
}
{code}
{code}
java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
{code}
was:
This should not be allowed.
public void testGroupingAndAggregationOnSameField() {
QueryFactory qf = getQueryFactory();
Query q = qf.from(getModelFactory().getUserImplClass())
.select(Expression.count("surname"), Expression.sum("addresses.number"))
.groupBy("surname")
.build();
List<Object[]> list = q.list(); // throws ClassCastException
}
java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
> Errors when the same column is both a gouping column and an aggregation column
> ------------------------------------------------------------------------------
>
> Key: ISPN-6076
> URL: https://issues.jboss.org/browse/ISPN-6076
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 8.0.2.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.2.0.Alpha1, 8.2.0.Final
>
>
> This should not be allowed.
> {code}
> public void testGroupingAndAggregationOnSameField() {
> QueryFactory qf = getQueryFactory();
> Query q = qf.from(getModelFactory().getUserImplClass())
> .select(Expression.count("surname"), Expression.sum("addresses.number"))
> .groupBy("surname")
> .build();
> List<Object[]> list = q.list(); // throws ClassCastException
> }
> {code}
> {code}
> java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
> at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
> 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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6076) Errors when the same column is both a gouping column and an aggregation column
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6076?page=com.atlassian.jira.plugin.... ]
Work on ISPN-6076 started by Adrian Nistor.
-------------------------------------------
> Errors when the same column is both a gouping column and an aggregation column
> ------------------------------------------------------------------------------
>
> Key: ISPN-6076
> URL: https://issues.jboss.org/browse/ISPN-6076
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 8.0.2.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.2.0.Alpha1, 8.2.0.Final
>
>
> This should not be allowed.
> {code}
> public void testGroupingAndAggregationOnSameField() {
> QueryFactory qf = getQueryFactory();
> Query q = qf.from(getModelFactory().getUserImplClass())
> .select(Expression.count("surname"), Expression.sum("addresses.number"))
> .groupBy("surname")
> .build();
> List<Object[]> list = q.list(); // throws ClassCastException
> }
> {code}
> {code}
> java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
> at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
> 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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6076) Errors when the same column is both a gouping column and an aggregation column
by Adrian Nistor (JIRA)
Adrian Nistor created ISPN-6076:
-----------------------------------
Summary: Errors when the same column is both a gouping column and an aggregation column
Key: ISPN-6076
URL: https://issues.jboss.org/browse/ISPN-6076
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 8.0.2.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 8.2.0.Alpha1, 8.2.0.Final
This should not be allowed.
public void testGroupingAndAggregationOnSameField() {
QueryFactory qf = getQueryFactory();
Query q = qf.from(getModelFactory().getUserImplClass())
.select(Expression.count("surname"), Expression.sum("addresses.number"))
.groupBy("surname")
.build();
List<Object[]> list = q.list(); // throws ClassCastException
}
java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6076) Errors when the same column is both a gouping column and an aggregation column
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6076?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6076:
--------------------------------
Status: Open (was: New)
> Errors when the same column is both a gouping column and an aggregation column
> ------------------------------------------------------------------------------
>
> Key: ISPN-6076
> URL: https://issues.jboss.org/browse/ISPN-6076
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 8.0.2.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.2.0.Alpha1, 8.2.0.Final
>
>
> This should not be allowed.
> public void testGroupingAndAggregationOnSameField() {
> QueryFactory qf = getQueryFactory();
> Query q = qf.from(getModelFactory().getUserImplClass())
> .select(Expression.count("surname"), Expression.sum("addresses.number"))
> .groupBy("surname")
> .build();
> List<Object[]> list = q.list(); // throws ClassCastException
> }
> java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.objectfilter.impl.aggregation.Counter
> at org.infinispan.objectfilter.impl.aggregation.CountAccumulator.merge(CountAccumulator.java:24)
> 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.testEmbeddedSum(QueryDslConditionsTest.java:1959)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6075) Created cache is immediately available
by Martin Gencur (JIRA)
Martin Gencur created ISPN-6075:
-----------------------------------
Summary: Created cache is immediately available
Key: ISPN-6075
URL: https://issues.jboss.org/browse/ISPN-6075
Project: Infinispan
Issue Type: Bug
Components: Console
Affects Versions: 8.1.0.Final
Reporter: Martin Gencur
Steps to reproduce:
1) Add new cache
2) Go to the cache detail page
Issues:
1) The label in top-left corner says "Available" while it should be either Unavailable or Disabled at this point (probably it is because this page still shows the satus of the currentCluster and not the cache itself)
2) The actions on the right side include both "Disable" and "Enable" and both of them are clickable. Only "Enable" option should be available at this point.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6074) DistExec API should not require a distributed cache
by Tristan Tarrant (JIRA)
Tristan Tarrant created ISPN-6074:
-------------------------------------
Summary: DistExec API should not require a distributed cache
Key: ISPN-6074
URL: https://issues.jboss.org/browse/ISPN-6074
Project: Infinispan
Issue Type: Enhancement
Components: Core, Distributed Execution and Map/Reduce
Reporter: Tristan Tarrant
Assignee: William Burns
Fix For: 8.2.0.Final
The current DistExec API has the limitation that it requires a distributed cache to choose the nodes on which it runs the code.
The distexec API should instead be based off the DefaultCacheManager.
Additionally, the API could be redesigned and possibly take inspiration from the streams API (i.e. lambdas, etc)
cacheManager.cluster().execute(<lambda>)
Add fluent methods to filter nodes by address, etc.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ISPN-6016) Unstable HotRodRemoteCacheIT#testPutAsync test
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-6016?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-6016:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 8.2.0.Alpha1
Resolution: Done
> Unstable HotRodRemoteCacheIT#testPutAsync test
> ----------------------------------------------
>
> Key: ISPN-6016
> URL: https://issues.jboss.org/browse/ISPN-6016
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 8.1.0.CR1
> Reporter: Martin Gencur
> Assignee: Martin Gencur
> Fix For: 8.2.0.Alpha1
>
>
> The test might fail with the following error:
> {code}
> Actual results:
> java.lang.AssertionError: expected:<100> but was:<103>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at org.infinispan.server.test.client.hotrod.AbstractRemoteCacheIT.testPutAsync(AbstractRemoteCacheIT.java:575)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
> at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months