You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/30 09:23:30 UTC

[GitHub] [shardingsphere] git-chenhao opened a new issue, #18734: [part2]-JDBCBackendConnection:proxy-db connection no rollback when application-proxy connection is closed

git-chenhao opened a new issue, #18734:
URL: https://github.com/apache/shardingsphere/issues/18734

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   transaction rollback(proxy-db) when connection ( application-proxy) is closed
   
   ### Actual behavior
   transaction commit(proxy-db) when connection ( application-proxy) is closed,This will result in inconsistent data
   
   ![image](https://user-images.githubusercontent.com/20919316/176640984-ac5d13be-2ce2-4a37-92ec-787359306770.png)
   
   ### Reason analyze (If you can)
   When the above figure is executed to step 4-6, the disconnection of the upstream connection triggers the channelInactive method of Netty. At this time, JDBCBackendConnection will clear connectionPostProcessors
   <img width="809" alt="image" src="https://user-images.githubusercontent.com/20919316/176641343-ad682ac5-c4a6-4ae8-864b-d92fd7501ad4.png">
   So, step 2 the stored a will be deleted.
   This causes the transaction to be automatically committed after step 10 is completed,Not as expected rollback!
   
   
   ### 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).
   


-- 
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.apache.org

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


[GitHub] [shardingsphere] TeslaCN commented on issue #18734: JDBCBackendConnection:proxy-db connection auto commit when application-proxy connection break

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #18734:
URL: https://github.com/apache/shardingsphere/issues/18734#issuecomment-1170983228

   
   > I can solve this problem. I will send PR later
   
   Welcome! Assigned.
   


-- 
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


[GitHub] [shardingsphere] git-chenhao commented on issue #18734: [part2]-JDBCBackendConnection:proxy-db connection no rollback when application-proxy connection is closed

Posted by GitBox <gi...@apache.org>.
git-chenhao commented on issue #18734:
URL: https://github.com/apache/shardingsphere/issues/18734#issuecomment-1170980951

   I can solve this problem. I will send PR later
   
   


-- 
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


[GitHub] [shardingsphere] TeslaCN closed issue #18734: JDBCBackendConnection:proxy-db connection auto commit when application-proxy connection break

Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #18734: JDBCBackendConnection:proxy-db connection auto commit when application-proxy connection break
URL: https://github.com/apache/shardingsphere/issues/18734


-- 
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