seata Documentation lacks explanation of service.enableDegrade property

6kkfgxo0  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(57)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

service {
  #transaction service group mapping
  vgroupMapping.default_tx_group = "default"
  #only support when registry.type=file, please don't set multiple addresses
  default.grouplist = "127.0.0.1:8091"
  #degrade, current not support
  enableDegrade = false
  #disable seata
  disableGlobalTransaction = false
}
key desc remark
service.disableGlobalTransaction service.enableDegrade transaction Group (Appendix 1)
key desc remark
service.enableDegrade 降级开关(待实现)默认false。业务侧根据连续错误数自动降级不走seata事务
  • According to the Chinese documentation, this appears to correspond to client.tm.downgradeCheck at https://seata.apache.org/zh-cn/docs/user/configurations/#client%E7%AB%AF .
key desc remark
client.tm.degradeCheck 降级开关 默认false。业务侧根据连续错误数自动降级不走seata事务(详细介绍请阅读附录6)

Ⅱ. Describe what happened

  • Null.

Ⅲ. Describe what you expected to happen

  • Possible documentation updates or template updates.

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. Open https://seata.apache.org/docs/user/configurations/ .
  2. Open https://github.com/apache/incubator-seata/blob/v2.0.0/script/client/conf/file.conf .
  3. Open https://github.com/apache/incubator-seata/blob/2.x/script/client/conf/file.conf .

Minimal yet complete reproducer code (or URL to code):

  • Null.

Ⅴ. Anything else we need to know?

  • Null.

Ⅵ. Environment:

  • JDK version(e.g. java -version ):
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
  • Seata client/server version: 2.0.0
  • Database version: MySQL Server 8.3.0
  • OS(e.g. uname -a ): Linux DESKTOP-J7M76VH 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Others: Null
dy2hfwbg

dy2hfwbg1#

@linghengqian I apologize for any inconvenience this may have caused you, and thank you for your feedback.

  1. The service.enableDegrade has been deprecated, and I have removed it from both the code and the sample configuration files.
  2. Seata currently supports simulating empty transaction commit during runtime to decide on transaction degrade or upgrade. The tm.degradeCheck configuration (default is false) indicates whether to enable this feature. The tm.degradeCheckPeriod configuration (default is 2s) specifies the interval for the periodic detection. The tm.degradeCheckAllowTimes configuration (default is 10) represents the threshold of consecutive events required to trigger degrade or upgrade.

Additionally, the code for degrade was mistakenly deleted before and will be fixed in version 2.1.

相关问题