Skip to content

Commit

Permalink
optimize: use curator instead of zkclient in config model (#6779)
Browse files Browse the repository at this point in the history
  • Loading branch information
leizhiyuan authored Sep 12, 2024
1 parent 1df92e9 commit be01fb0
Show file tree
Hide file tree
Showing 8 changed files with 329 additions and 152 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 @@ -95,6 +95,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6819](https://github.com/apache/incubator-seata/pull/6819)] merge the packaging processes of namingserver and seata-server
- [[#6827](https://github.com/apache/incubator-seata/pull/6827)] rename namingserver registry type
- [[#6836](https://github.com/apache/incubator-seata/pull/6836)] add independent nacos for the CI process
- [[#6779](https://github.com/apache/incubator-seata/pull/6779)] use curator instead of zkclient in config model


### refactor:
Expand Down
2 changes: 1 addition & 1 deletion changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
- [[#6819](https://github.com/apache/incubator-seata/pull/6819)] namingserver与server的合并打包
- [[#6827](https://github.com/apache/incubator-seata/pull/6827)] 重命名namingserver注册类型改为seata
- [[#6836](https://github.com/apache/incubator-seata/pull/6836)] 为CI流程增加独立nacos

- [[#6779](https://github.com/apache/incubator-seata/pull/6779)] 在config模块中使用curator替代zkclient

### refactor:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,15 @@ public ConfigurationChangeEvent setNamespace(String namespace) {
this.namespace = namespace;
return this;
}

@Override
public String toString() {
return "ConfigurationChangeEvent{" +
"dataId='" + dataId + '\'' +
", oldValue='" + oldValue + '\'' +
", newValue='" + newValue + '\'' +
", namespace='" + namespace + '\'' +
", changeType=" + changeType +
'}';
}
}
18 changes: 10 additions & 8 deletions config/seata-config-zk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<exclusions>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
</dependency>
</dependencies>

Expand Down

This file was deleted.

Loading

0 comments on commit be01fb0

Please sign in to comment.