Search in sources :

Example 6 with RemoteOperationException

use of org.apache.geode.internal.cache.RemoteOperationException in project geode by apache.

the class DistributedTXRegionStub method invalidateExistingEntry.

public void invalidateExistingEntry(EntryEventImpl event, boolean invokeCallbacks, boolean forceNewEntry) {
    try {
        RemoteOperationResponse response = RemoteInvalidateMessage.send(state.getTarget(), event.getRegion(), event, DistributionManager.PARTITIONED_REGION_EXECUTOR, true, false);
        response.waitForCacheException();
    } catch (RegionDestroyedException rde) {
        throw new TransactionDataNotColocatedException(LocalizedStrings.RemoteMessage_REGION_0_NOT_COLOCATED_WITH_TRANSACTION.toLocalizedString(rde.getRegionFullPath()), rde);
    } catch (RemoteOperationException roe) {
        throw new TransactionDataNodeHasDepartedException(roe);
    }
}
Also used : RegionDestroyedException(org.apache.geode.cache.RegionDestroyedException) TransactionDataNotColocatedException(org.apache.geode.cache.TransactionDataNotColocatedException) RemoteOperationException(org.apache.geode.internal.cache.RemoteOperationException) RemoteOperationResponse(org.apache.geode.internal.cache.RemoteOperationMessage.RemoteOperationResponse) TransactionDataNodeHasDepartedException(org.apache.geode.cache.TransactionDataNodeHasDepartedException)

Aggregations

RegionDestroyedException (org.apache.geode.cache.RegionDestroyedException)6 TransactionDataNodeHasDepartedException (org.apache.geode.cache.TransactionDataNodeHasDepartedException)6 TransactionDataNotColocatedException (org.apache.geode.cache.TransactionDataNotColocatedException)6 RemoteOperationException (org.apache.geode.internal.cache.RemoteOperationException)6 CacheException (org.apache.geode.cache.CacheException)2 PartitionedRegionException (org.apache.geode.internal.cache.PartitionedRegionException)2 RemoteOperationResponse (org.apache.geode.internal.cache.RemoteOperationMessage.RemoteOperationResponse)2 EntryNotFoundException (org.apache.geode.cache.EntryNotFoundException)1 LocalRegion (org.apache.geode.internal.cache.LocalRegion)1 RemoteGetMessage (org.apache.geode.internal.cache.RemoteGetMessage)1 RemotePutAllMessage (org.apache.geode.internal.cache.RemotePutAllMessage)1 PutResult (org.apache.geode.internal.cache.RemotePutMessage.PutResult)1 RemotePutResponse (org.apache.geode.internal.cache.RemotePutMessage.RemotePutResponse)1 RemoteRemoveAllMessage (org.apache.geode.internal.cache.RemoteRemoveAllMessage)1