[jbosscache-issues] [JBoss JIRA] (JBCACHE-498) Replication issue with Collection proxy using Iterators

Scott Marlow (JIRA) jira-events at lists.jboss.org
Mon Aug 6 16:22:07 EDT 2012


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

Scott Marlow closed JBCACHE-498.
--------------------------------


    
> Replication issue with Collection proxy using Iterators
> -------------------------------------------------------
>
>                 Key: JBCACHE-498
>                 URL: https://issues.jboss.org/browse/JBCACHE-498
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.2.4SP1
>            Reporter: prateek mathur
>            Assignee: Scott Marlow
>             Fix For: 1.3.0.GA
>
>
> There is an issue in replicating "updated" changes in the following scenario: 
> Code: 
> Map proxyMap=(Map)cache.geObject("/aop/mymap");
> Set set=proxyMap.keySet();
> Iterator setIterator=set.iterator();
> while(setIterator.hasNext()){
>  Object obj=setIterator.next();
>   if(obj.someCondition()==true){
>      iterator.remove();   
>   }
> }
> 	 
> So when the iterator.remove() is called , it will remove the object from the set and the corresponding "key" and "value" from the HashMap. 
> But the PROBLEM is it does not REPLICATE this removal.Since the HashMap was affected ultimately so replication should have happened, but it doesnt. 
> However if  explicity called map.remove("key"), the removal is replicated to the other nodes in the cluster. 
> Is there any workaround for this??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosscache-issues mailing list