apache / apache/incubator-seata
通过设置 System.setProperty("seata.config.name","/abc/registry.conf") 设置registry.conf的路径不生效
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
目的时为了在类路径的abc目录下放置registry.conf,但通过设置 System.setProperty("seata.config.name","/abc/registry.conf")后,registry.conf的内容不生效,同时registry.conf里也设置了config.file.name="/abc/file.conf",file.conf内容也不生效!
registry.conf内容如下:
```
registry {
# file 、nacos 、eureka、redis、zk
type = "nacos"
nacos {
application="seata-server"
serverAddr="192.168.137.199:8848"
namespace=""
cluster="default"
group="SEATA_GROUP"
username="nacos"
password="nacos"
}
}
config {
# file、nacos 、apollo、zk
type = "file"
file {
name = "/abc/file.conf"
}
}
```
Contributor guide
Research direction
Start by reproducing the issue with System.setProperty("seata.config.name","/abc/registry.conf") and the registry.conf and file.conf paths shown in the report. Trace Seata's configuration-loading entry point to determine why both classpath configuration files are ignored, then verify that the configured registry and file settings take effect. Confirm the behavior with a focused regression test if the repository provides a suitable configuration test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100