Mantis - Resin
Viewing Issue Advanced Details
5698 minor always 03-21-14 13:44 09-10-14 14:33
cowan  
ferg  
normal  
closed 4.0.38  
no change required  
none    
none  
0005698: JCache iterator keys are not synchronized to remote server
Suppose to have two instances on the cluster: app-0 and app-1.
 
1) From app-0 I put a new item on cache:
cache.put("x" , new Date());
 
2) From app-0 I can get keys present on my cache:
Iterator<Entry<String,Date>> it = cache.iterator();
       
        while (it.hasNext()) {
             Entry<String,Date> entry = it.next();
             log(entry.getKey());
        }
 
            Will print “x”
 
3) From app-1 I can’t get keys present on my cache (but cache is synchronized with app-0):
 
while (it.hasNext()) {
             Entry<String,Date> entry = it.next();
             log(entry.getKey());
        }
            
Will print null!

Fortunately calling cache.get("x") will get right value. But I could never reliably list all cache keys.
Rep by C. Bergoglio

Notes
(0006503)
ferg   
09-10-14 14:33   
JCache support frozen in 4.0.x