-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature:Support to obtain multiple configurations through a single key in etcd3 #3327
Conversation
# Conflicts: # config/seata-config-nacos/src/main/java/io/seata/config/nacos/NacosConfiguration.java
@a364176773 |
� Conflicts: � script/server/config/registry.yml
Codecov Report
@@ Coverage Diff @@
## develop #3327 +/- ##
==========================================
Coverage 51.56% 51.56%
- Complexity 3373 3375 +2
==========================================
Files 617 617
Lines 20438 20442 +4
Branches 2565 2565
==========================================
+ Hits 10538 10541 +3
- Misses 8839 8842 +3
+ Partials 1061 1059 -2
|
这个pr冲突也解决一下 |
� Conflicts: � changes/1.5.0.md � changes/en-us/1.5.0.md � config/seata-config-etcd3/src/main/java/io/seata/config/etcd3/EtcdConfiguration.java � script/server/config/registry.conf � script/server/config/registry.properties � script/server/config/registry.yml � server/src/main/resources/registry.conf
Codecov Report
@@ Coverage Diff @@
## develop #3327 +/- ##
=============================================
+ Coverage 49.34% 49.38% +0.04%
- Complexity 3721 3725 +4
=============================================
Files 692 692
Lines 23419 23443 +24
Branches 2902 2911 +9
=============================================
+ Hits 11555 11578 +23
+ Misses 10701 10699 -2
- Partials 1163 1166 +3
|
@a364176773 解决好了,已经提交了 |
ok,consul那个pr我解决了下冲突合并进去了,你看下我解决的有没有问题,如果有问题再提个fix的pr |
config/seata-config-etcd3/src/main/java/io/seata/config/etcd3/EtcdConfiguration.java
Outdated
Show resolved
Hide resolved
� Conflicts: � changes/1.5.0.md � changes/en-us/1.5.0.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @xingfudeshi PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
https://cla-assistant.io/seata/seata 请登录对应的github账号打开cla链接签署,感谢大家配合 |
Ⅰ. Describe what this PR did
添加从etcd3单一key获取多条配置功能,registry.conf文件添加config.etcd3.key属性用于指定etcd3中的key。
Ⅱ. Does this pull request fix one issue?
#2506 #2316
Ⅲ. Why don't you add test cases (unit test/integration test)?
此功能在原有功能上修改,不方便写测试用例。
Ⅳ. Describe how to verify it
其他功能正常配置后,在registry.conf文件中将config.type设置为“etcd3”,添加config.etcd3.key属性,属性值为etcd3中的key,例如“seata.properties”,启动seata应用(server或client都可以),会自动拉取etcd3上“seata.properties”中的配置。
应用中的配置如下,根据项目选择对应的配置方式:
application.yml
registry.conf
etcd3中的属性配置如下:
Ⅴ. Special notes for reviews
将config.type设置为“etcd3”。
此功能已实现动态配置,同时兼容旧的配置方式。
seata-server也可以通过这种方式配置。
由于etcd3没有可视化界面,建议使用脚本导入配置,或自行开发对应的ui界面。