路由规则不起作用
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
以下是schema的配置:
路由规则的配置:
id
2
512
结果(日志):
16:51:07,247 DEBUG [thread=Processor2-H0,class=ServerConnection,host=172.17.138.31,port=46673,schema=dbtest]insert into tb2 values(1,'p1')
16:51:07,263 DEBUG [thread=Processor2-H0,class=ServerConnection,host=172.17.138.31,port=46673,schema=dbtest]insert into tb2 values(1,'p1'), route={
1 -> dnTest2.default{insert into tb2 values(1,'p1')}
2 -> dnTest3.default{insert into tb2 values(1,'p1')}
}
问题:
为什么路由到两个表中了?路由规则没有起作用?配置错了?
Contributor guide
Research direction
The report provides schema and routing XML plus ServerConnection log output, but no source file or test. Start by reproducing the dbtest/tb2 setup with dnTest2 and dnTest3, then trace how rule1 and func1 are resolved; done means the cause of routing to both nodes is established and a precise fix or explanation is recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100