question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make ShardingDataSource compatible with Seata in micro-service distribution transaction

See original GitHub issue

In micro-service distribution transaction, Seata will wrap ShardingDataSource as DataSourceProxy which communication with seata-server through RPC protocol, and DataSourceProxy will invoke some standard JDBC interface to get metadata from ShardingDataSource, however ShardingDataSource don’t compatible with it. I have investigated in my local environment and found these issues we should resolve

  • support get information by logical schema in CachedDataBaseMetaData
  • support getParameterMetaData in ShardingPreparedStatement
  • add sharding.transaction.seata.at.enable config in sharding-transaction-base-seata-at

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cherrylzhaocommented, Mar 29, 2020

how about this ?

sharding.transaction.seata.at.enable = true

client {
    application.id = test
    transaction.service.group = my_test_tx_group
}
0reactions
cay914commented, Aug 5, 2020

@cherrylzhao where to config sharding.transaction.seata.at.enable = true ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Your Distributed Database on Kubernetes with Existing ...
Transform any monolithic database into a distributed database and deploy on Kubernetes using Apache ShardingSphere.
Read more >
Pattern: Database per service - Microservice Architecture
Implementing business transactions that span multiple services is not straightforward. Distributed transactions are best avoided because of the CAP theorem.
Read more >
Distributed Transaction - Apache ShardingSphere
Distributed transaction have been integrated into ShardingDataSource , you can use TransactionTypeHolder to modify transaction type before creating ...
Read more >
Building Book A Show Application using Java 8 & Spring Boot - Morioh
After splitting the library, it is complex to process distributed transactions. There is a large amount of data on a single table and...
Read more >
How does Apache ShardingSphere implement distributed ...
ShardingSphere's transaction feature is built on the local transaction of the storage DB, providing three transaction modes: LOCAL , XA and BASE ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found