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 2020/05/21 12:50:38 UTC
[GitHub] [shardingsphere] mylava opened a new issue #5738: forced to use the master database when the transaction started in master-slave mode
mylava opened a new issue #5738:
URL: https://github.com/apache/shardingsphere/issues/5738
## Question
I want to force the commands in a transaction to be executed in the master database in sharding-proxy.
I see that there is no implementation in the source code (version number: 4.0.0-release),so,I would like to ask if this feature is implemented in the newer version?
If the newer version doesn't have this feature, I'd like to implement it myself. Do you have any Suggestions?
If I were to expand myself, here's the idea,
If the command is "BeginTransactionStatement",the ” connectionId“ will be records into a cache,for the same connectionId after submission of SQL will be route to Master database to execute,utile the command this connection committed is "CommitStatement", after this command executed, the ” connectionId“ will be remove from cache.
That's the general idea,Please give advice or comments,thanks~
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu closed issue #5738: forced to use the master database when the transaction started in master-slave mode
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #5738:
URL: https://github.com/apache/shardingsphere/issues/5738
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu commented on issue #5738: forced to use the master database when the transaction started in master-slave mode
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #5738:
URL: https://github.com/apache/shardingsphere/issues/5738#issuecomment-634122402
Master-Slave mode cannot support transaction
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] mylava commented on issue #5738: forced to use the master database when the transaction started in master-slave mode
Posted by GitBox <gi...@apache.org>.
mylava commented on issue #5738:
URL: https://github.com/apache/shardingsphere/issues/5738#issuecomment-632577994
> I have the same question.
> Master-Slave mode cannot support transaction in proxy.
Is it not supported or not implemented?
Are there any problems implementing this functionality?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] nevereverever commented on issue #5738: forced to use the master database when the transaction started in master-slave mode
Posted by GitBox <gi...@apache.org>.
nevereverever commented on issue #5738:
URL: https://github.com/apache/shardingsphere/issues/5738#issuecomment-632544762
I have the same question.
Master-Slave mode cannot support transaction in proxy.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org