Version Upgrade Guide
1. What compatibility matters need to be paid attention to when upgrading to seata 1.5.0?
Notes
- When the storage mode of seata-server is db, you need to pay attention to the table structure changes. You need to change the table structure before upgrading to 1.5.0:
- The table structure character set is uniformly adjusted from utf8 to utf8mb4.
- The
global_tableadjustment index is adjusted fromidx_gmt_modified_statustoidx_status_gmt_modified. lock_tableaddsstatusfield, and addsidx_status,idx_xid_and_branch_idindex.- Add
distributed_locktable for seata-server asynchronous task scheduling. Before upgrading to 1.5.0, please pay attention to the table structure changes. For details on the table structure, please click here.
-
TCC transaction mode adds anti-hanging function in 1.5.0. If you need to enable anti-hanging by Seata framework, you need to add this table to the client business library in advance.
-
The first-stage method of TCC mode has been optimized. It is no longer necessary to define
BusinessActionContextas an interface parameter in the first stage. IfBusinessActionContextneeds to be used in the first stage, it can be obtained throughBusinessActionContextUtil.getContext(). -
The internal structure of the redis registration center has been adjusted and is no longer backward compatible. If you use redis as the registration center of seata, please also upgrade both seata-all (seata-spring-boot-starter) and seata-server that the client depends on.
-
The transaction group configuration supports default values. In order to avoid ambiguity and reduce learning costs, the default transaction group is changed from
my_test_tx_grouptodefault_tx_group. It will be backward compatible in version 1.5.X.