class TransactionCommitAmbiguousException extends TransactionFailedException
The transaction expired at the point of trying to commit it. It is ambiguous whether the transaction has committed or not.
This error is result of inevitable and unavoidable edge cases when working with unreliable networks. For example, consider an ordinary mutation being made over the network to any database. The mutation could succeed on the database-side, and then just before the result is returned to the client, the network connection drops. The client cannot receive the success result and will timeout - it is ambiguous to it whether the mutation succeeded or not.
The transactions layer will work to resolve the ambiguity up until the transaction expires, but if unable to resolve it in that time, it is forced to raise this error. The transaction may or may not have been successful, and error-handling of this is highly application-dependent.
The asynchronous cleanup process will try to complete the transaction: roll it back if it didn't commit, roll it forwards if it did.
- Alphabetic
- By Inheritance
- TransactionCommitAmbiguousException
- TransactionFailedException
- CouchbaseException
- RuntimeException
- Exception
- Throwable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
- def context(): ErrorContext
- Definition Classes
- CouchbaseException
- Annotations
- @Uncommitted()
- def fillInStackTrace(): Throwable
- Definition Classes
- Throwable
- def getCause(): Throwable
- Definition Classes
- Throwable
- def getLocalizedMessage(): String
- Definition Classes
- Throwable
- final def getMessage(): String
- Definition Classes
- CouchbaseException → Throwable
- def getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
- final def getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
- def initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
- def logs(): Iterable[TransactionLogEvent]
An in-memory log is built up during each transaction.
An in-memory log is built up during each transaction. The application may want to write this to their own logs, for example upon transaction failure.
- Definition Classes
- TransactionFailedException
- def printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
- def printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
- def printStackTrace(): Unit
- Definition Classes
- Throwable
- def setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
- def toString(): String
- Definition Classes
- Throwable → AnyRef → Any
- def transactionId(): String
- Definition Classes
- TransactionFailedException