Skip to content

Commit

Permalink
optimize: remove enableDegrade properties (#6350)
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly authored Feb 19, 2024
1 parent d4cbdf4 commit e5fab2d
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 24 deletions.
1 change: 1 addition & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6144](https://github.com/apache/incubator-seata/pull/6144)] upgrade nacos client to 1.4.6
- [[#6147](https://github.com/apache/incubator-seata/pull/6147)] upgrade kafka-clients to 3.6.1
- [[#6340](https://github.com/apache/incubator-seata/pull/6340)] upgrade and tidy some dependencies
- [[#6350](https://github.com/apache/incubator-seata/pull/6350)] remove enableDegrade properties
- [[#6349](https://github.com/apache/incubator-seata/pull/6349)] transfer dockerhub repo

### test:
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
- [[#6145](https://github.com/apache/incubator-seata/pull/6145)] 升级 jettison依赖版本至1.5.4
- [[#6147](https://github.com/apache/incubator-seata/pull/6147)] 升级 kafka-clients依赖至3.6.1
- [[#6340](https://github.com/apache/incubator-seata/pull/6340)] 升级和整理依赖
- [[#6350](https://github.com/apache/incubator-seata/pull/6350)] 移除 enableDegrade 配置

### test:
- [[#6081](https://github.com/apache/incubator-seata/pull/6081)] 添加 `test-os.yml` 用于测试seata在各种操作系统下的运行情况
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ public interface ConfigurationKeys {
*/
String SERVER_NODE_SPLIT_CHAR = System.getProperty("line.separator");

/**
* The constant ENABLE_DEGRADE_POSTFIX.
*/
String ENABLE_DEGRADE_POSTFIX = "enableDegrade";

/**
* The constant CLIENT_PREFIX.
*/
Expand Down
2 changes: 0 additions & 2 deletions script/client/conf/file.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ service {
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
}
Expand Down
1 change: 0 additions & 1 deletion script/client/spring/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ seata.client.load-balance.virtual-nodes=10
seata.log.exception-rate=100
seata.service.vgroup-mapping.default_tx_group=default
seata.service.grouplist.default=127.0.0.1:8091
seata.service.enable-degrade=false
seata.service.disable-global-transaction=false
seata.transport.shutdown.wait=3
seata.transport.thread-factory.boss-thread-prefix=NettyBoss
Expand Down
1 change: 0 additions & 1 deletion script/client/spring/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ seata:
default_tx_group: default
grouplist:
default: 127.0.0.1:8091
enable-degrade: false
disable-global-transaction: false
transport:
shutdown:
Expand Down
1 change: 0 additions & 1 deletion script/config-center/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ transport.compressor=none
service.vgroupMapping.default_tx_group=default
#If you use a registry, you can ignore it
service.default.grouplist=127.0.0.1:8091
service.enableDegrade=false
service.disableGlobalTransaction=false

client.metadataMaxAgeMs=30000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ public class ServiceProperties implements InitializingBean {
* group list
*/
private Map<String, String> grouplist = new HashMap<>();
/**
* degrade current not support
*/
private boolean enableDegrade = false;

/**
* disable globalTransaction
*/
Expand All @@ -67,15 +64,6 @@ public void setGrouplist(Map<String, String> grouplist) {
this.grouplist = grouplist;
}

public boolean isEnableDegrade() {
return enableDegrade;
}

public ServiceProperties setEnableDegrade(boolean enableDegrade) {
this.enableDegrade = enableDegrade;
return this;
}

public boolean isDisableGlobalTransaction() {
return disableGlobalTransaction;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public void testServiceProperties() {
Map<String, String> grouplist = serviceProperties.getGrouplist();
assertEquals("default", vgroupMapping.get(DEFAULT_TX_GROUP));
assertEquals("127.0.0.1:8091", grouplist.get("default"));
assertFalse(serviceProperties.isEnableDegrade());
assertFalse(serviceProperties.isDisableGlobalTransaction());
}

Expand Down

0 comments on commit e5fab2d

Please sign in to comment.