@Override public void distribute() { try { super.distribute(); } catch (InvalidVersionException e) { if (logger.isDebugEnabled()) { logger.trace(LogMarker.DM, "PutAll failed since versions were missing; retrying again", e); } if (test_InvalidVersionAction != null) { test_InvalidVersionAction.run(); } super.distribute(); } }
buff.append(deserializationPolicyToString(this.deserializationPolicy));
/** * Get the adjunct receivers for a partitioned region operation * * @param br * the PR bucket * @param cacheOpReceivers * the receivers of the CacheOperationMessage for this op * @param twoMessages * PR members that are creating the bucket and need both cache op * and adjunct messages * @param routing * client routing information */ Set getAdjunctReceivers(BucketRegion br, Set cacheOpReceivers, Set twoMessages, FilterRoutingInfo routing) { return br.getAdjunctReceivers(this.getEvent(), cacheOpReceivers, twoMessages, routing); }
DistributedRegion region = getRegion(); DM mgr = region.getDistributionManager(); boolean reliableOp = isOperationReliable() && region.requiresReliabilityCheck(); if (this.containsRegionContentChange()) { viewVersion = region.getDistributionAdvisor().startOperation(); Set<InternalDistributedMember> recipients = getRecipients(); Map<InternalDistributedMember, PersistentMemberID> persistentIds = null; if(region.getDataPolicy().withPersistence()) { twoMessages = ((BucketRegion)region).getBucketAdvisor().adviseRequiresTwoMessages(); routingComputed = true; filterRouting = getRecipientFilterRouting(recipients); if (filterRouting != null) { if (logger.isDebugEnabled()) { if (this.supportsAdjunctMessaging() && region.isUsedForPartitionedRegionBucket()) { BucketRegion br = (BucketRegion)region; adjunctRecipients = getAdjunctReceivers(br, recipients, twoMessages, filterRouting); EntryEventImpl entryEvent = event.getOperation().isEntry()? getEvent() : null; Set<InternalDistributedMember> cachelessNodesWithNoCacheServer = new HashSet<InternalDistributedMember>(); if (region.getDistributionConfig().getDeltaPropagation() && this.supportsDeltaPropagation()) {
protected void initMessage(CacheOperationMessage msg, DirectReplyProcessor p) { msg.regionPath = getRegion().getFullPath(); msg.processorId = p == null ? 0 : p.getProcessorId(); msg.processor = p; if (this.event.getOperation().isEntry()) { EntryEventImpl entryEvent = getEvent(); msg.callbackArg = entryEvent.getRawCallbackArgument(); msg.possibleDuplicate = entryEvent.isPossibleDuplicate(); VersionTag tag = entryEvent.getVersionTag(); msg.setInhibitNotificationsBit(entryEvent.inhibitAllNotifications()); if (tag != null && tag.hasValidVersion()) { msg.setVersionTag(tag); } } else { msg.callbackArg = ((RegionEventImpl)this.event).getRawCallbackArgument(); } msg.op = this.event.getOperation(); msg.owner = this; msg.regionAllowsConflation = getRegion().getEnableAsyncConflation(); }
DistributedRegion region = getRegion(); DM mgr = region.getDistributionManager(); LogWriterI18n logger = region.getCache().getLoggerI18n(); boolean reliableOp = isOperationReliable() && region.requiresReliabilityCheck(); if (this.containsRegionContentChange()) { viewVersion = region.getDistributionAdvisor().startOperation(); Set<InternalDistributedMember> recipients = getRecipients(); Map<InternalDistributedMember, PersistentMemberID> persistentIds = null; if(region.getDataPolicy().withPersistence()) { sendingTwoMessages = !twoMessages.isEmpty(); routingComputed = true; filterRouting = getRecipientFilterRouting(recipients); if (filterRouting != null && logger.fineEnabled()) { logger.fine("Computed this filter routing: " if (this.supportsAdjunctMessaging() && region.isUsedForPartitionedRegionBucket()) { BucketRegion br = (BucketRegion)region; adjunctRecipients = getAdjunctReceivers(br, recipients, twoMessages, filterRouting); EntryEventImpl entryEvent = event.getOperation().isEntry()? getEvent() : null; Set<InternalDistributedMember> cachelessNodesWithNoCacheServer = new HashSet<InternalDistributedMember>(); if (region.getDistributionConfig().getDeltaPropagation()
protected void initMessage(CacheOperationMessage msg, DirectReplyProcessor p) { final DistributedRegion region = getRegion(); msg.regionPath = region.getFullPath(); msg.processorId = p == null ? 0 : p.getProcessorId(); msg.processor = p; if (this.event.getOperation().isEntry()) { EntryEventImpl entryEvent = getEvent(); msg.callbackArg = entryEvent.getRawCallbackArgument(); msg.possibleDuplicate = entryEvent.isPossibleDuplicate(); VersionTag tag = entryEvent.getVersionTag(); msg.setInhibitNotificationsBit(entryEvent.inhibitAllNotifications()); if (tag != null && tag.hasValidVersion()) { msg.setVersionTag(tag); } } else { msg.callbackArg = ((RegionEventImpl)this.event).getRawCallbackArgument(); } msg.op = this.event.getOperation(); msg.owner = this; msg.regionAllowsConflation = region.getEnableAsyncConflation(); }
@Override public void distribute() { LogWriterI18n log = getRegion().getLogWriterI18n(); try { super.distribute(); } catch (InvalidVersionException e) { if (DistributionManager.VERBOSE || log.fineEnabled()) { log.info(LocalizedStrings.DEBUG, "PutAll failed since versions were missing; retrying again", e); } if (test_InvalidVersionAction != null) { test_InvalidVersionAction.run(); } super.distribute(); } }
buff.append(deserializationPolicyToString(this.deserializationPolicy));
/** * Get the adjunct receivers for a partitioned region operation * * @param br * the PR bucket * @param cacheOpReceivers * the receivers of the CacheOperationMessage for this op * @param twoMessages * PR members that are creating the bucket and need both cache op * and adjunct messages * @param routing * client routing information */ Set getAdjunctReceivers(BucketRegion br, Set cacheOpReceivers, Set twoMessages, FilterRoutingInfo routing) { return br.getAdjunctReceivers(this.getEvent(), cacheOpReceivers, twoMessages, routing); }
op.distribute(); event.release();
buff.append(DistributedCacheOperation.deserializationPolicyToString(this.deserializationPolicy)); buff.append("; hasDelta="); buff.append(this.hasDelta);
.deserializationPolicyToString(this.deserializationPolicy)); buff.append("; sendDelta="); buff.append(this.sendDelta);
buff.append( DistributedCacheOperation .deserializationPolicyToString(this.deserializationPolicy)); if (this.hasDelta) { buff.append("; hasDelta=");
.deserializationPolicyToString(this.deserializationPolicy)); if (this.hasDelta) { buff.append("; hasDelta=");