[infinispan-issues] [JBoss JIRA] (ISPN-3969) Can't retrieve values from FineGrainedAtomicMap with "storeAsBinary" option enabled

Dan Berindei (Jira) issues at jboss.org
Wed Mar 25 17:52:56 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei closed ISPN-3969.
------------------------------
    Resolution: Out of Date


{{FineGrainedAtomicMap}} was removed in 10.0.0.Beta4 (ISPN-10320)

> Can't retrieve values from FineGrainedAtomicMap with "storeAsBinary" option enabled
> -----------------------------------------------------------------------------------
>
>                 Key: ISPN-3969
>                 URL: https://issues.redhat.com/browse/ISPN-3969
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 6.0.1.Final
>            Reporter: Gunnar Morling
>            Priority: Major
>         Attachments: MarshallingTest.java
>
>
> When using the "storeAsBinary" option, a value added to a {{FineGrainedAtomicMap}} via {{put()}} can't be read back via {{get()}}:
> {code}
> Configuration configuration = new ConfigurationBuilder()
> 	.storeAsBinary()
> 		.enable()
> 	.transaction()
> 		.transactionMode(TransactionMode.TRANSACTIONAL )
> 		.transactionManagerLookup(new JBossStandaloneJTAManagerLookup() )
> 	.build();
> EmbeddedCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration( "testCache", configuration );
> manager.getCache( "testCache", true );
> 		
> CacheKey cacheKey = new CacheKey( "Some Key" );
> Object key = "the key";
> Object value = "the value";
> FineGrainedAtomicMap<Object, Object> map = AtomicMapLookup.getFineGrainedAtomicMap( cache, cacheKey, true );
> map.put( key, value );
> //fails
> assertNotNull( map.get( key ) );
> {code}
> See the attached file for a complete test case.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list