]
Galder Zamarreño commented on ISPN-1198:
----------------------------------------
Fixing entrySet is doable by making sure the entry set is filtered before returning.
However, this is proving to be a bit lengthy due to combinations that need testing:
- with and without transactional modifications
- test not only entrySet but also keySet() and values() methods
While doing all this, I think I've found some issues with ISPN-708 too because for
example the entrySet returned exposes InternalCacheEntries to the user and breaks equals()
guarantees.
remove entries from a cache with getBulk operation on RemoteCache
after their lifespan ends
-------------------------------------------------------------------------------------------
Key: ISPN-1198
URL:
https://issues.jboss.org/browse/ISPN-1198
Project: Infinispan
Issue Type: Feature Request
Affects Versions: 5.0.0.CR5
Reporter: Martin Gencur
Assignee: Galder Zamarreño
Fix For: 5.0.0.CR7, 5.0.0.FINAL
This is related to a getBulk operation on an Infinispan HotRod client.
Simple test snippet that fails ATM:
Map<String,String> mapIn = new HashMap<String,String>() ;
Map<String,String> mapOut = new HashMap<String,String>() ;
mapOut.put("aKey", "aValue");
mapOut.put("bKey", "bValue");
remoteCache.putAll(mapOut, lifespanInSecs, TimeUnit.SECONDS);
sleepForSecs(lifespanInSecs) ;
mapIn = remoteCache.getBulk();
assertTrue(mapIn.size() == 0); //fails, entries are still there
However, when I call remoteCache.get(<key>); for all the keys and then getBulk, the
getBulk return empty map.
So it seems the get operations cause the entries to be removed from the cache. Please
implement this also for getBulk operation or reject it with an explanation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: