apache / apache/incubator-seata
使用XA模式出现java.lang.IllegalArgumentException: endpoint format should like ip:port
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
使用XA模式
```java
@Bean
public DataSource dataSource() {
return new DataSourceProxyXA(super.createDruidDataSource("account", 5000));
}
```
file.conf
```config
service {
vgroupMapping.dev = "dev"
dev.grouplist = "xx:8091" //另外一台机器部署的seata-server
#degrade, current not support
enableDegrade = false
#disable seata
disableGlobalTransaction = true
}
```
测试出现异常:
```log
java.lang.IllegalArgumentException: endpoint format should like ip:port
```
debug发现 `service.dev.grouplist=127.0.0.1:8091` 为啥取不到我配置的地址呢
spring
Contributor guide
Research direction
Start with the DataSourceProxyXA setup and the file.conf service.dev.grouplist entry, then trace how the XA client loads and parses that endpoint. Reproduce the configuration with the remote xx:8091 address and compare it with the observed 127.0.0.1:8091 value; done means the configured endpoint is used without the format exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100