This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3e53ddfc484 fix some bugs in the transaction module (#22002)
3e53ddfc484 is described below
commit 3e53ddfc4843264e735488413a31664a29191a7c
Author: 本宫在,尔等都是妃 <[email protected]>
AuthorDate: Thu Nov 10 18:26:12 2022 +0800
fix some bugs in the transaction module (#22002)
* #18932: fix bug in spi-based-sharding-spring-boot-jpa-example
* #18932: fix bug in spi-based-sharding-spring-boot-jpa-example
* #18932: fix bug in spi-based-sharding-spring-boot-jpa-example
* fix hint example
* fix: Can not find shardingAlgorithm `database-inline` in database
`logic_db`.
* bugfix #21955: No implementation class load from SPI
org.apache.shardingsphere.mode.repository.standalone.StandalonePersistRepository
with type H2.
* bugfix: Some test cases have incorrect configuration information
* bugfix: fix some bugs in the transaction module
Co-authored-by: qubo <“[email protected]”>
---
.../transaction/xa/spring/boot/TransactionXaSpringBootExample.java | 1 +
.../xa/spring/namspace/TransactionXaSpringNamespaceExample.java | 2 +-
.../base/seata/spring/boot/TransactionBaseSeataSpringBootExample.java | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/boot/TransactionXaSpringBootExample.java
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/boot/TransactionXaSpringBootExample.java
index 3d77286ea33..9354b9a3818 100644
---
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/boot/TransactionXaSpringBootExample.java
+++
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/boot/TransactionXaSpringBootExample.java
@@ -38,6 +38,7 @@ public class TransactionXaSpringBootExample {
@PostConstruct
public void executeOrderService() {
orderService.init();
+ orderService.insert(10);
orderService.selectAll();
orderService.cleanup();
}
diff --git
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/namspace/TransactionXaSpringNamespaceExample.java
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/namspace/TransactionXaSpringNamespaceExa
[...]
index 4f5024142de..ae4dce92924 100644
---
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/namspace/TransactionXaSpringNamespaceExample.java
+++
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-2pc-xa-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/spring/namspace/TransactionXaSpringNamespaceExample.java
@@ -27,7 +27,7 @@ public final class TransactionXaSpringNamespaceExample {
AnnotationConfigApplicationContext applicationContext = new
AnnotationConfigApplicationContext(TransactionXaSpringNamespaceExample.class);
XAOrderService xaOrderService =
applicationContext.getBean("XAOrderService", XAOrderService.class);
xaOrderService.init();
- xaOrderService.init();
+ xaOrderService.insert(10);
xaOrderService.selectAll();
xaOrderService.cleanup();
}
diff --git
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-base-seata-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/base/seata/spring/boot/TransactionBaseSeataSpringBootExample.java
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-base-seata-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/base/seata/spring/boot/TransactionBaseSeataSpr
[...]
index b1e5b26b971..7ab9f6f300f 100644
---
a/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-base-seata-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/base/seata/spring/boot/TransactionBaseSeataSpringBootExample.java
+++
b/examples/shardingsphere-jdbc-example/single-feature-example/transaction-example/transaction-base-seata-spring-boot-example/src/main/java/org/apache/shardingsphere/example/transaction/base/seata/spring/boot/TransactionBaseSeataSpringBootExample.java
@@ -47,6 +47,7 @@ public class TransactionBaseSeataSpringBootExample {
@PostConstruct
public void executeOrderService() {
orderService.init();
+ orderService.insert(10);
orderService.selectAll();
orderService.cleanup();
}