apache / apache/incubator-seata

数据库连接配置为MySQL-Router双节点配置时问题

Open
#2,873 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

![image](https://user-images.githubusercontent.com/12670258/86903895-8913cd00-c142-11ea-967b-4162f2e52771.png)
## 当数据库连接配置为jdbc:mysql//router1:port1,router2:port2/db时,将出现如上图所示异常。
从源码看,推测io.seata.core.rpc.ChannelManager#registerRMChannel方法逻辑中有使用逗号分隔资源id存在bug。

Contributor guide

Open the contributing guide

Research direction

Start with io.seata.core.rpc.ChannelManager#registerRMChannel and reproduce the exception using a JDBC MySQL URL containing router1:port1,router2:port2/db, as described in the issue and screenshot. Trace how comma-separated resource IDs are handled; done means the dual MySQL-Router configuration no longer produces the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mysql
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.