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

public class PartialWriteException extends MultiClusterAccessException
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: