Class CrdbTransactionRetryException

  • All Implemented Interfaces:
    Serializable

    public class CrdbTransactionRetryException
    extends OptimisticLockingException
    Exception that is thrown when an optimistic locking error occurs in CockroachDB, caused by concurrent access to the same data entries by multiple transactions. CockroachDB optimistic locking errors can't be handled in application code, so the transaction must be rolled back and the involved commands retried.
    See Also:
    Serialized Form
    • Constructor Detail

      • CrdbTransactionRetryException

        public CrdbTransactionRetryException​(String message)
      • CrdbTransactionRetryException

        public CrdbTransactionRetryException​(String message,
                                             Throwable throwable)