Skip to content
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

Support local transaction on Sharding-Proxy #1238

Closed
terrymanu opened this issue Sep 6, 2018 · 3 comments
Closed

Support local transaction on Sharding-Proxy #1238

terrymanu opened this issue Sep 6, 2018 · 3 comments

Comments

@terrymanu
Copy link
Member

No description provided.

@cherrylzhao
Copy link
Member

currently sharding-proxy have integrated with XA, and our local transaction is quite same with XA.
both of them need to hold the routed sharing connection untill commit command is triggered.
and performance improvement for local transaction is limit, so we decide to close this issue.

@cherrylzhao
Copy link
Member

consider about refactor sharing-proxy, making local transaction connection binding with specified channel, in order to get all associate connections in commit phase.

@cherrylzhao
Copy link
Member

cherrylzhao commented Nov 15, 2018

  • refactor backendConnection
    • add LocalTransaction manager
    • split getConnection by transaction
    • make channel handle request one by one for none-transaction mode
    • make schema binding with backend connection
    • make connection id binding with backend connection
  • refactor proxy transaction model
    • add BackendTransactionManager to handle transaction by type
    • refactor ComQueryPacket
  • optimize performance and tolerance.
    • make connection automatically close when partition error happened.
    • resolve get connections dead lock for routing multi shards.
  • add datasource map switch feature
  • add setTransaType by SQL within proxy
    • refactor backendHandlerFactory
    • introduce sctl:set transaction_type=XX for proxy

terrymanu added a commit that referenced this issue Nov 23, 2018
#1238 Support Proxy local transaction
terrymanu added a commit that referenced this issue Nov 24, 2018
#1238 Release connection while channel have not transaction.
terrymanu added a commit that referenced this issue Nov 24, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
maxiaoguang64 pushed a commit to maxiaoguang64/incubator-shardingsphere that referenced this issue Nov 25, 2018
terrymanu added a commit that referenced this issue Nov 26, 2018
for #1238 optimize backendConnection for OLAP performance.
terrymanu added a commit that referenced this issue Nov 28, 2018
for #1238 optimize proxy backendConnection
terrymanu added a commit that referenced this issue Dec 1, 2018
for #1238 Refactor transaction type and schema switch logic.
terrymanu added a commit that referenced this issue Dec 3, 2018
for #1238 Make connectionId binding with backendConnection
terrymanu added a commit that referenced this issue Dec 8, 2018
for #1238 Add transaction type switch feature & SCTL for Proxy
terrymanu added a commit that referenced this issue Dec 12, 2018
for #1363 and #1238 Resolve performance test problem.
@terrymanu terrymanu added this to the 3.1.0.M1 milestone Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants