From e45a579b500bdb2133cf4db7f38765a3cc781f58 Mon Sep 17 00:00:00 2001 From: pkyriakou23 <72734444+pkyriakou23@users.noreply.github.com> Date: Fri, 15 Jul 2022 16:43:05 +0300 Subject: [PATCH 1/2] Update SubService.java --- .../org/apache/eventmesh/http/demo/sub/service/SubService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java b/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java index b825bc979c..d2aab6f738 100644 --- a/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java +++ b/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java @@ -93,7 +93,7 @@ public void afterPropertiesSet() throws Exception { e.printStackTrace(); } logger.info("stopThread start...."); - System.exit(0); + throw new RuntimeException(); }); stopThread.start(); } From a268ddb4ac80dfb925c786689c6e856b1489251e Mon Sep 17 00:00:00 2001 From: pkyriakou23 <72734444+pkyriakou23@users.noreply.github.com> Date: Fri, 15 Jul 2022 16:44:36 +0300 Subject: [PATCH 2/2] Update SubService.java --- .../org/apache/eventmesh/grpc/sub/app/service/SubService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventmesh-examples/src/main/java/org/apache/eventmesh/grpc/sub/app/service/SubService.java b/eventmesh-examples/src/main/java/org/apache/eventmesh/grpc/sub/app/service/SubService.java index 8d3fe0d075..f48dad1d2d 100644 --- a/eventmesh-examples/src/main/java/org/apache/eventmesh/grpc/sub/app/service/SubService.java +++ b/eventmesh-examples/src/main/java/org/apache/eventmesh/grpc/sub/app/service/SubService.java @@ -90,7 +90,7 @@ public void afterPropertiesSet() throws Exception { e.printStackTrace(); } logger.info("stopThread start...."); - System.exit(0); + throw new RuntimeException(); }); stopThread.start(); }