You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "huntkalio (via GitHub)" <gi...@apache.org> on 2025/09/02 03:50:14 UTC

Re: [I] Read after write in transaction behavior when transactionalReadQueryStrategy is DYNAMIC [shardingsphere]

huntkalio commented on issue #36426:
URL: https://github.com/apache/shardingsphere/issues/36426#issuecomment-3243691562

   ```
   mysql> begin;
   mysql> update test_db set family_id=1 where user_id=1;
   mysql> select * from test_db where user_id=1;
   mysql> commit;
   
   
   
   [INFO ] 2025-09-02 11:47:27.418 [ShardingSphere-Command-1] ShardingSphere-SQL:73 - Logic SQL: update test_db set family_id=1 where user_id=1
   [INFO ] 2025-09-02 11:47:27.419 [ShardingSphere-Command-1] ShardingSphere-SQL:73 - Actual SQL: ds_master_1 ::: update test_db_0 set family_id=1 where user_id=1
   [INFO ] 2025-09-02 11:47:37.232 [ShardingSphere-Command-1] ShardingSphere-SQL:73 - Logic SQL: select * from test_db where user_id=1
   [INFO ] 2025-09-02 11:47:37.232 [ShardingSphere-Command-1] ShardingSphere-SQL:73 - Actual SQL: ds_slave_1 ::: select * from test_db_0 where user_id=1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org