[JBoss JIRA] (ISPN-9706) SpringCache: get("key", Callable) not working with null values
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9706?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-9706:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.4.2.Final
10.0.0.Alpha1
Resolution: Done
> SpringCache: get("key", Callable) not working with null values
> --------------------------------------------------------------
>
> Key: ISPN-9706
> URL: https://issues.jboss.org/browse/ISPN-9706
> Project: Infinispan
> Issue Type: Bug
> Components: Spring Integration
> Affects Versions: 9.4.1.Final
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
> Fix For: 9.4.2.Final, 10.0.0.Alpha1
>
>
> {code:SpringCacheTest.java}
> @Test
> public void testGetWithNullValue() {
> assertNull(cache.get("null", () -> null));
> }
> {code}
> {code}
> Caused by: java.lang.NullPointerException: Null values are not supported!
> {code}
> and
> {code:SpringCacheTest.java}
> @Test
> public void testGetNullValueAfterPutNull() {
> cache.put("key", null);
> String result = cache.get("key", () -> "notnull");
> assertNull(result);
> }
> {code}
> {code}
> java.lang.ClassCastException: org.infinispan.spring.provider.NullValue cannot be cast to java.lang.String
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (ISPN-9705) SpringCache Put null value and get(key, clazz) IllegalStateException
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9705?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-9705:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.4.2.Final
10.0.0.Alpha1
Resolution: Done
> SpringCache Put null value and get(key, clazz) IllegalStateException
> --------------------------------------------------------------------
>
> Key: ISPN-9705
> URL: https://issues.jboss.org/browse/ISPN-9705
> Project: Infinispan
> Issue Type: Bug
> Components: Spring Integration
> Affects Versions: 9.4.1.Final
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
> Fix For: 9.4.2.Final, 10.0.0.Alpha1
>
>
> {code:title=SpringCacheTest,java|borderStyle=solid}
> public void testPutNullError() {
> //when//then
> cache.put("key", null);
> cache.get("key", String.class);
> }
> {code}
> We get
> {code}
> java.lang.IllegalStateException: Cached value is not of required type [java.lang.String]: org.infinispan.spring.provider.NullValue@76f7d241
> {code}
> JavaDoc for this method states this method does not make difference between cached null and null value.
> Note: This variant of {@code get} does not allow for differentiating
> * between a cached {@code null} value and no cache entry found at all.
> * Use the standard {@link #get(Object)} variant for that purpose instead.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (ISPN-9745) Release fails because compatibility bundle modules don't have source jars
by Dan Berindei (Jira)
Dan Berindei created ISPN-9745:
----------------------------------
Summary: Release fails because compatibility bundle modules don't have source jars
Key: ISPN-9745
URL: https://issues.jboss.org/browse/ISPN-9745
Project: Infinispan
Issue Type: Bug
Components: Build
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.4.2.Final
Modules {{client/marshaller/protostuff/protostuff-marshaller-compatibility-bundle}} and {{client/marshaller/protostuff/protostuff-marshaller-compatibility-bundle}} are uber-jars and don't have any sources.
Prior to the ISPN-9697 changes, a {{DEPENDENCIES.txt}} and {{LICENSES.txt}} was generated in the source directory, and a test-sources jar was created. But after those files were removed, a test-sources jar is no longer generated, and Nexus rejects the artifacts:
{noformat}
11:19:37.492 [ERROR]
11:19:37.492 [ERROR] Nexus Staging Rules Failure Report
11:19:37.492 [ERROR] ==================================
11:19:37.492 [ERROR]
11:19:37.493 [ERROR] Repository "jboss_releases_staging_profile-14551" failures
11:19:37.493 [ERROR] Rule "sources-staging" failures
11:19:37.493 [ERROR] * Missing: no sources jar found in folder '/org/infinispan/infinispan-marshaller-kryo-bundle/9.4.2.Final'
11:19:37.493 [ERROR] * Missing: no sources jar found in folder '/org/infinispan/infinispan-marshaller-protostuff-bundle/9.4.2.Final'
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (ISPN-9745) Release fails because compatibility bundle modules don't have source jars
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9745?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-9745:
-------------------------------
Status: Open (was: New)
> Release fails because compatibility bundle modules don't have source jars
> -------------------------------------------------------------------------
>
> Key: ISPN-9745
> URL: https://issues.jboss.org/browse/ISPN-9745
> Project: Infinispan
> Issue Type: Bug
> Components: Build
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 9.4.2.Final
>
>
> Modules {{client/marshaller/protostuff/protostuff-marshaller-compatibility-bundle}} and {{client/marshaller/protostuff/protostuff-marshaller-compatibility-bundle}} are uber-jars and don't have any sources.
> Prior to the ISPN-9697 changes, a {{DEPENDENCIES.txt}} and {{LICENSES.txt}} was generated in the source directory, and a test-sources jar was created. But after those files were removed, a test-sources jar is no longer generated, and Nexus rejects the artifacts:
> {noformat}
> 11:19:37.492 [ERROR]
> 11:19:37.492 [ERROR] Nexus Staging Rules Failure Report
> 11:19:37.492 [ERROR] ==================================
> 11:19:37.492 [ERROR]
> 11:19:37.493 [ERROR] Repository "jboss_releases_staging_profile-14551" failures
> 11:19:37.493 [ERROR] Rule "sources-staging" failures
> 11:19:37.493 [ERROR] * Missing: no sources jar found in folder '/org/infinispan/infinispan-marshaller-kryo-bundle/9.4.2.Final'
> 11:19:37.493 [ERROR] * Missing: no sources jar found in folder '/org/infinispan/infinispan-marshaller-protostuff-bundle/9.4.2.Final'
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months
[JBoss JIRA] (ISPN-9744) Cache creation should be non blocking
by William Burns (Jira)
William Burns created ISPN-9744:
-----------------------------------
Summary: Cache creation should be non blocking
Key: ISPN-9744
URL: https://issues.jboss.org/browse/ISPN-9744
Project: Infinispan
Issue Type: Enhancement
Components: Core
Reporter: William Burns
Assignee: William Burns
Internally cache creation stores entries in a CompletableFuture. We however don't return a CompletionStage to the invoker of getCache. We should do this and utilize the same approach to async calls that {code}DefaultCacheManager#startCaches{code} does by starting a thread per cache.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 11 months