Search in sources :

Example 1 with TransactionInDoubtException

use of org.apache.geode.cache.TransactionInDoubtException in project geode by apache.

the class ClientTXStateStub method commit.

@Override
public void commit() throws CommitConflictException {
    obtainLocalLocks();
    try {
        TXCommitMessage txcm = firstProxy.commit(proxy.getTxId().getUniqId());
        afterServerCommit(txcm);
    } catch (TransactionDataNodeHasDepartedException e) {
        throw new TransactionInDoubtException(e);
    } finally {
        lockReq.releaseLocal();
        this.firstProxy.getPool().releaseServerAffinity();
    }
}
Also used : TXCommitMessage(org.apache.geode.internal.cache.TXCommitMessage) TransactionInDoubtException(org.apache.geode.cache.TransactionInDoubtException) TransactionDataNodeHasDepartedException(org.apache.geode.cache.TransactionDataNodeHasDepartedException)

Aggregations

TransactionDataNodeHasDepartedException (org.apache.geode.cache.TransactionDataNodeHasDepartedException)1 TransactionInDoubtException (org.apache.geode.cache.TransactionInDoubtException)1 TXCommitMessage (org.apache.geode.internal.cache.TXCommitMessage)1