[jboss-user] [JBossCache] - Re: Cache, missing entries

baranowb do-not-reply at jboss.com
Thu Dec 21 11:41:08 EST 2006


Yes I meant "get" not "getObject". YOu asked for desc of steps 1-5

6) here Tx commits, SynchronizationHanlder executes preCommitActions
Iterator iterc=getLocalCacheCopy().entrySet().iterator();    - Tx[1]
while (iterc.hasNext()) {
	Map.Entry nextEntry = (Map.Entry)iterc.next();
	cache.put(nodeName, nextEntry.getKey(), nextEntry.getValue());
	}
//this is note executed since noetries have been removed
if(getRemovedEntriesSet().size()>0)
{
    iterc=getRemovedEntriesSet().iterator();
    while(iterc.hasNext())
     {

       Object key=iterc.next();
       cache.remove(nodeName,key)

      }
}


7) looks similar, however no put operation is performed, only one remove since entry has been removed and that key has been added to RemovedEntriesSet.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995656#3995656

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995656



More information about the jboss-user mailing list