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

Gunnar Morling (JIRA) issues at jboss.org
Wed Feb 5 11:26:28 EST 2014


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

Gunnar Morling updated ISPN-3969:
---------------------------------

    Description: 
When using the "storeAsBinary" option to enforce eager serialization, a value added to a {{FineGrainedAtomicMap}} via {{put()}} can't be read back via {{get()}}:

{code}
EmbeddedCacheManager manager = ...;
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.

  was:
When using the "storeAsBinary" option to enforce eager serialization, a value added to a {{FineGrainedAtomicMap}} via {{put()}} can't be read back via {{get()}}:

{code}
EmbeddedCacheManager manager = ...;
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}


    
> Can't retrieve values from FineGrainedAtomicMap with "storeAsBinary" option enabled
> -----------------------------------------------------------------------------------
>
>                 Key: ISPN-3969
>                 URL: https://issues.jboss.org/browse/ISPN-3969
>             Project: Infinispan
>          Issue Type: Bug
>            Reporter: Gunnar Morling
>            Assignee: Mircea Markus
>         Attachments: MarshallingTest.java
>
>
> When using the "storeAsBinary" option to enforce eager serialization, a value added to a {{FineGrainedAtomicMap}} via {{put()}} can't be read back via {{get()}}:
> {code}
> EmbeddedCacheManager manager = ...;
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list