You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ki...@apache.org on 2020/10/23 10:10:47 UTC

[shardingsphere] branch master updated: exit narayana demo (#7899)

This is an automated email from the ASF dual-hosted git repository.

kimmking 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 0bbc2f5  exit narayana demo (#7899)
0bbc2f5 is described below

commit 0bbc2f5d9039e5fab10a055006637c83da7d4abf
Author: xiaoyu <54...@qq.com>
AuthorDate: Fri Oct 23 18:10:24 2020 +0800

    exit narayana demo (#7899)
---
 .../example/transaction/xa/narayana/raw/jdbc/ExampleMain.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/shardingsphere-jdbc-example/transaction-example/transaction-2pc-xa-narayana-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/narayana/raw/jdbc/ExampleMain.java b/examples/shardingsphere-jdbc-example/transaction-example/transaction-2pc-xa-narayana-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/narayana/raw/jdbc/ExampleMain.java
index 64327a5..2c381fa 100644
--- a/examples/shardingsphere-jdbc-example/transaction-example/transaction-2pc-xa-narayana-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/narayana/raw/jdbc/ExampleMain.java
+++ b/examples/shardingsphere-jdbc-example/transaction-example/transaction-2pc-xa-narayana-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/transaction/xa/narayana/raw/jdbc/ExampleMain.java
@@ -26,13 +26,13 @@ import java.io.File;
 import java.io.IOException;
 import java.sql.SQLException;
 
-//FIXME main class could not terminal after execute.
 public final class ExampleMain {
     
     public static void main(final String[] args) throws SQLException, IOException {
         DataSource dataSource = YamlShardingSphereDataSourceFactory.createDataSource(getFile("/META-INF/sharding-databases-tables.yaml"));
         ExampleExecuteTemplate.run(getExampleService(dataSource));
         ExampleExecuteTemplate.runFailure(getExampleService(dataSource));
+        System.exit(1);
     }
     
     private static File getFile(final String fileName) {