-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
(mybatis + shardingjdbc ) multithreading paging query Incorrect result #2136
Comments
Could you try to execute the same SQL without sharding-jdbc and watch the results? What do you mean repeated data? Bug ReportFor English only, other languages will not accept. Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details. Please answer these questions before submitting your issue. Thanks! Which version of ShardingSphere did you use?Which project did you use? Sharding-JDBC or Sharding-Proxy?Expected behaviorActual behaviorReason analyze (If you can)Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.Example codes for reproduce this issue (such as a github link). |
Thanks for your professional report, I am about to fix it. |
@RaigorStonehoof Can you call me on wechat(15810310987)? |
OK |
The reason is we should not modify SQLStatement after cached. |
Verified, It's OK now, thank you! |
environment: spring boot + mybatis + shatdingjdbc
multithreading paging query,database exists enough data;
thread1 logic SQL: select * from table_name limit 0,2;
thread2 logic SQL: select * from table_name limit 2,2;
....
sometimes thread1 or thread2 return result's size is 0 or less than 2, sometimes thread1 and thread2 return result exist repeated data.
The text was updated successfully, but these errors were encountered: