PDF (A4) - 40.1Mb
Man Pages (TGZ) - 259.0Kb
Man Pages (Zip) - 366.2Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Theserver_transactions table is subset of thecluster_transactions table, but includes only those transactions in which the current SQL node (MySQL Server) is a participant, while including the relevant connection IDs.
Theserver_transactions table contains the following columns:
mysql_connection_idMySQL Server connection ID
node_idTransaction coordinator node ID
block_instanceTransaction coordinator block instance
transidTransaction ID
stateOperation state (see text for possible values)
count_operationsNumber of stateful operations in the transaction
outstanding_operationsOperations still being executed by local data management layer (LQH blocks)
inactive_secondsTime spent waiting for API
client_node_idClient node ID
client_block_refClient block reference
Notes
Themysql_connection_id is the same as the connection or session ID shown in the output ofSHOW PROCESSLIST. It is obtained from theINFORMATION_SCHEMA tableNDB_TRANSID_MYSQL_CONNECTION_MAP.
block_instance refers to an instance of a kernel block. Together with the block name, this number can be used to look up a given instance in thethreadblocks table.
The transaction ID (transid) is a unique 64-bit number which can be obtained using the NDB API'sgetTransactionId() method. (Currently, the MySQL Server does not expose the NDB API transaction ID of an ongoing transaction.)
Thestate column can have any one of the valuesCS_ABORTING,CS_COMMITTING,CS_COMMIT_SENT,CS_COMPLETE_SENT,CS_COMPLETING,CS_CONNECTED,CS_DISCONNECTED,CS_FAIL_ABORTED,CS_FAIL_ABORTING,CS_FAIL_COMMITTED,CS_FAIL_COMMITTING,CS_FAIL_COMPLETED,CS_FAIL_PREPARED,CS_PREPARE_TO_COMMIT,CS_RECEIVING,CS_REC_COMMITTING,CS_RESTART,CS_SEND_FIRE_TRIG_REQ,CS_STARTED,CS_START_COMMITTING,CS_START_SCAN,CS_WAIT_ABORT_CONF,CS_WAIT_COMMIT_CONF,CS_WAIT_COMPLETE_CONF,CS_WAIT_FIRE_TRIG_REQ. (If the MySQL Server is running withndbinfo_show_hidden enabled, you can view this list of states by selecting from thendb$dbtc_apiconnect_state table, which is normally hidden.)
Inclient_node_id andclient_block_ref,client refers to an NDB Cluster API or SQL node (that is, an NDB API client or a MySQL Server attached to the cluster).
Theblock_instance column provides theDBTC kernel block instance number. You can use this to obtain information about specific threads from thethreadblocks table.
PDF (A4) - 40.1Mb
Man Pages (TGZ) - 259.0Kb
Man Pages (Zip) - 366.2Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb