All Products
Search
Document Center

Tablestore:AbortTransaction

Last Updated:Sep 09, 2026

Call the AbortTransaction operation to abort a local transaction. After you create a local transaction for a partition key and write data to it, you can abort the transaction or wait for it to time out to discard the data updates.

Usage notes

  • Each local transaction has a maximum lifecycle of 60 seconds.

    If a local transaction is not committed or aborted within 60 seconds, the Tablestore server-side aborts the transaction due to a timeout.

  • If no write operations are performed in a local transaction, committing the transaction is equivalent to aborting it.

Request structure

message AbortTransactionRequest {
    required string transaction_id = 1;
}

Parameter

Type

Required

Description

transaction_id

string

Yes

The ID of the local transaction.

Response structure

message AbortTransactionResponse {
}

Using the SDK

You can use local transactions with the following SDKs.