Skip to content

Commit

Permalink
optimize: optimize the default value of the switch (apache#4591)
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly authored May 8, 2022
1 parent 8a12ddc commit 1a3b6bc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions changes/1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单
- [[#4551](https://github.com/seata/seata/pull/4551)] 优化 metrics rt 统计问题
- [[#4574](https://github.com/seata/seata/pull/4574)] 支持 accessKey/secretKey 配置自动注入
- [[#4583](https://github.com/seata/seata/pull/4583)] DefaultAuthSigner的默认签名加密方法替换为HmacSHA256
- [[#4591](https://github.com/seata/seata/pull/4591)] 优化开关默认值

### test:

Expand Down
3 changes: 3 additions & 0 deletions changes/en-us/1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@
- [[#4551](https://github.com/seata/seata/pull/4551)] optimize metrics rt statistics
- [[#4574](https://github.com/seata/seata/pull/4574)] support accessKey/secretKey auto configuration
- [[#4583](https://github.com/seata/seata/pull/4583)] use HmacSHA256 instead of HmacSHA1 for ram signature
- [[#4591](https://github.com/seata/seata/pull/4591)] optimize the default value of the switch





Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/io/seata/common/DefaultValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface DefaultValues {
int DEFAULT_TM_DEGRADE_CHECK_PERIOD = 2000;
int DEFAULT_CLIENT_REPORT_RETRY_COUNT = 5;
boolean DEFAULT_CLIENT_REPORT_SUCCESS_ENABLE = false;
boolean DEFAULT_CLIENT_TABLE_META_CHECK_ENABLE = false;
boolean DEFAULT_CLIENT_TABLE_META_CHECK_ENABLE = true;
long DEFAULT_TABLE_META_CHECKER_INTERVAL = 60000L;
boolean DEFAULT_TM_DEGRADE_CHECK = false;
boolean DEFAULT_CLIENT_SAGA_BRANCH_REGISTER_ENABLE = false;
Expand Down
4 changes: 2 additions & 2 deletions script/config-center/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ client.rm.lock.retryInterval=10
client.rm.lock.retryTimes=30
client.rm.lock.retryPolicyBranchRollbackOnConflict=true
client.rm.reportRetryCount=5
client.rm.tableMetaCheckEnable=false
client.rm.tableMetaCheckEnable=true
client.rm.tableMetaCheckerInterval=60000
client.rm.sqlParserType=druid
client.rm.reportSuccessEnable=false
Expand Down Expand Up @@ -120,7 +120,7 @@ server.rollbackRetryTimeoutUnlockEnable=false
server.distributedLockExpireTime=10000
server.xaerNotaRetryTimeout=60000
server.session.branchAsyncQueueSize=5000
server.session.enableBranchAsyncRemove=true
server.session.enableBranchAsyncRemove=false

#Metrics configuration, only for the server
metrics.enabled=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testLockProperties() {
public void testRmProperties() {
assertEquals(10000, context.getBean(RmProperties.class).getAsyncCommitBufferLimit());
assertEquals(5, context.getBean(RmProperties.class).getReportRetryCount());
assertFalse(context.getBean(RmProperties.class).isTableMetaCheckEnable());
assertTrue(context.getBean(RmProperties.class).isTableMetaCheckEnable());
assertFalse(context.getBean(RmProperties.class).isReportSuccessEnable());
assertEquals(60000L,context.getBean(RmProperties.class).getTableMetaCheckerInterval());
assertFalse(context.getBean(RmProperties.class).isSagaRetryPersistModeUpdate());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class SessionProperties {
/**
* enable to asynchronous remove branchSession
*/
private Boolean enableBranchAsyncRemove = true;
private Boolean enableBranchAsyncRemove = false;

public Integer getBranchAsyncQueueSize() {
return branchAsyncQueueSize;
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/application.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ seata:
log-delete-period: 86400000
session:
branch-async-queue-size: 5000 #branch async remove queue size
enable-branch-async-remove: true #enable to asynchronous remove branchSession
enable-branch-async-remove: false #enable to asynchronous remove branchSession
store:
# support: file 、 db 、 redis
mode: file
Expand Down

0 comments on commit 1a3b6bc

Please sign in to comment.