Class PartialWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.openspaces.core.multicluster.exception.MultiClusterAccessException
org.openspaces.core.multicluster.exception.PartialWriteException
- All Implemented Interfaces:
Serializable
Thrown when a fanned-out mutation succeeded on some clusters and failed on others - the clusters have
diverged, and only the caller can decide what that means for their data.
This condition is deliberately not silent. A proxy that swallowed it would leave one site missing an entry with nothing in the caller's control flow to say so; the divergence would surface days later as a mysterious inconsistency between sites. The exception carries which clusters took the mutation and which rejected it, so an operator can reconcile the difference.
It is only raised for mixed outcomes. When every cluster fails - which is what an application error such as a duplicate id looks like, since every cluster rejects it identically - the original space exception is rethrown untouched instead, so existing catch blocks keep working.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne cluster's rejection. -
Constructor Summary
ConstructorsConstructorDescriptionPartialWriteException(String operation, List<String> appliedClusters, List<PartialWriteException.ClusterFailure> failures) -
Method Summary
Modifier and TypeMethodDescriptionClusters where the mutation was applied.The clusters that rejected the mutation, by name.Clusters that rejected the mutation, with the reason each gave.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PartialWriteException
public PartialWriteException(String operation, List<String> appliedClusters, List<PartialWriteException.ClusterFailure> failures)
-
-
Method Details
-
getAppliedClusters
-
getFailures
Clusters that rejected the mutation, with the reason each gave. -
getFailedClusters
-