Source:
<code>protected Set<Integer> attemptToSendPartitionedRegionClearMessage(RegionEventImpl event, PartitionedRegionClearMessage.OperationType op) throws ForceReattemptException { Set<Integer> bucketsOperated = new HashSet<>(); if (partitionedRegion.getPRRoot() == null) { if (logger.isDebugEnabled()) { logger.debug( "Partition region failed to initialize. Remove its profile from remote members.", this.partitionedRegion); } new UpdateAttributesProcessor(partitionedRegion, true).distribute(false); return bucketsOperated; } if (!partitionedRegion.allServerVersionsSupportPartitionRegionClear()) { <START> throw new PartitionedRegionVersionException(); <END> } final Set<InternalDistributedMember> configRecipients = new HashSet<>(partitionedRegion.getRegionAdvisor() .adviseAllPRNodes()); try { final PartitionRegionConfig prConfig = partitionedRegion.getPRRoot().get(partitionedRegion.getRegionIdentifier()); if (prConfig != null) { for (Node node : prConfig.getNodes()) { InternalDistributedMember idm = node.getMemberId(); if (!idm.equals(partitionedRegion.getMyId())) { configRecipients.add(idm); } } } } catch (CancelException ignore) { } try { PartitionedRegionClearMessage.PartitionedRegionClearResponse resp = new PartitionedRegionClearMessage.PartitionedRegionClearResponse( partitionedRegion.getSystem(), configRecipients); PartitionedRegionClearMessage partitionedRegionClearMessage = new PartitionedRegionClearMessage(configRecipients, partitionedRegion, resp, op, event); partitionedRegionClearMessage.send(); resp.waitForRepliesUninterruptibly(); bucketsOperated = resp.bucketsCleared; } catch (ReplyException e) { Throwable t = e.getCause(); if (t instanceof ForceReattemptException) { throw (ForceReattemptException) t; } if (t instanceof PartitionedRegionPartialClearException) { throw new PartitionedRegionPartialClearException(t.getMessage(), t); } logger.warn( "PartitionedRegionClear#sendPartitionedRegionClearMessage: Caught exception during ClearRegionMessage send and waiting for response", e); } return bucketsOperated; }</code><technical_language>this is throwing exception</technical_language>

Target:
protected Set<Integer> attemptToSendPartitionedRegionClearMessage(RegionEventImpl event, PartitionedRegionClearMessage.OperationType op) throws ForceReattemptException { Set<Integer> bucketsOperated = new HashSet<>(); if (partitionedRegion.getPRRoot() == null) { if (logger.isDebugEnabled()) { logger.debug( "Partition region failed to initialize. Remove its profile from remote members.", this.partitionedRegion); } new UpdateAttributesProcessor(partitionedRegion, true).distribute(false); return bucketsOperated; } final Set<InternalDistributedMember> configRecipients = new HashSet<>(partitionedRegion.getRegionAdvisor() .adviseAllPRNodes()); try { final PartitionRegionConfig prConfig = partitionedRegion.getPRRoot().get(partitionedRegion.getRegionIdentifier()); if (prConfig != null) { for (Node node : prConfig.getNodes()) { InternalDistributedMember idm = node.getMemberId(); if (!idm.equals(partitionedRegion.getMyId())) { configRecipients.add(idm); } } } } catch (CancelException ignore) { } try { PartitionedRegionClearMessage.PartitionedRegionClearResponse resp = new PartitionedRegionClearMessage.PartitionedRegionClearResponse( partitionedRegion.getSystem(), configRecipients); PartitionedRegionClearMessage partitionedRegionClearMessage = new PartitionedRegionClearMessage(configRecipients, partitionedRegion, resp, op, event); partitionedRegionClearMessage.send(); resp.waitForRepliesUninterruptibly(); bucketsOperated = resp.bucketsCleared; } catch (ReplyException e) { Throwable t = e.getCause(); if (t instanceof ForceReattemptException) { throw (ForceReattemptException) t; } if (t instanceof PartitionedRegionPartialClearException) { throw new PartitionedRegionPartialClearException(t.getMessage(), t); } logger.warn( "PartitionedRegionClear#sendPartitionedRegionClearMessage: Caught exception during ClearRegionMessage send and waiting for response", e); } return bucketsOperated; }