-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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#2601 Check RoutingResult. #3021
Conversation
2. add ParsingSQLRoutingResultChecker to check RoutingResult with ShardingRule.RoutingUnits. 3. add, modify some UTs.
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.
I notice you use reflect. Have you tested the performance?
Is the checking work for each SQL?
Reflect is only in AbstractSpringJUnitTest.java for unit test to reload MetaData after create table. |
We can discuss which sql should be check. In my view, we can divide the check into two parts, dataSource check and table check. In this PR table check for DML, and dataSource check for no master-slaver. |
It's right to check all the DMLs. You can take a performance test for comparision. |
Hello, I don't think the checker will affect performance. Because it only check routingResult with shardingRule and meteData. and I don't know how to prove it. Please give me some advice. |
You can compare the performance (QPS) between checking and without checking routingResult. |
The ckecker do affect the performance. |
OK, I will do this after mid-autumn festival. |
I run jmeter with |
OK. |
Fixes #2601.
Changes proposed in this pull request: