protected void releaseViewVersions() { RuntimeException rte = null; for (Iterator it=viewVersions.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry)it.next(); DistributedRegion dr = (DistributedRegion)e.getKey(); Long viewVersion = (Long)e.getValue(); // need to continue the iteration if one of the regions is destroyed // since others may still be okay try { long newv = dr.getDistributionAdvisor().endOperation(viewVersion.longValue()); } catch (RuntimeException ex) { rte = ex; } } if (rte != null) { throw rte; } }
public void finishPendingDestroy() { //send a message to peers indicating that they should remove this profile long viewVersion = advisor.startOperation(); try { RemovePersistentMemberMessage.send(advisor.adviseProfileUpdate(), advisor.getDistributionManager(), regionPath, getPersistentID(), getInitializingID()); storage.finishPendingDestroy(); } finally { if (viewVersion != -1) { advisor.endOperation(viewVersion); } } synchronized(lock) { recoveredMembers.clear(); } }
} finally { if (viewVersion != -1) { advisor.endOperation(viewVersion);
region.getDistributionAdvisor().endOperation(viewVersion); viewVersion = -1; logger.trace(LogMarker.STATE_FLUSH_OP, "done dispatching operation in view version {}", viewVersion); region.getDistributionAdvisor().endOperation(viewVersion);
region.getDistributionAdvisor().endOperation(viewVersion); viewVersion = -1; logger.info(LocalizedStrings.DEBUG, "done dispatching operation in view version " + viewVersion); region.getDistributionAdvisor().endOperation(viewVersion);
public void finishPendingDestroy() { //send a message to peers indicating that they should remove this profile long viewVersion = -1; viewVersion = advisor.startOperation(); try { if(logger.infoEnabled()) { advisor.getLogWriter().info(LocalizedStrings.DEBUG, "The advisee is " + advisor.getAdvisee()); } if (advisor.getAdvisee() != null && (advisor.getAdvisee() instanceof ProxyBucketRegion)) { ((ProxyBucketRegion)advisor.getAdvisee()).clearIndexes(advisor.getLogWriter()); } RemovePersistentMemberMessage.send(advisor.adviseProfileUpdate(), advisor.getDistributionManager(), regionPath, getPersistentID(), getInitializingID()); storage.finishPendingDestroy(); } finally { if (viewVersion != -1) { advisor.endOperation(viewVersion); } } synchronized(lock) { recoveredMembers.clear(); } }
} finally { if (viewVersion != -1) { advisor.endOperation(viewVersion);