You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by ji...@apache.org on 2024/10/11 07:35:17 UTC
(amoro) branch 0.7.x updated: [AMORO-3050] Fix AMS crashes if javalin stop timeouts (#3052)
This is an automated email from the ASF dual-hosted git repository.
jinsongzhou pushed a commit to branch 0.7.x
in repository https://gitbox.apache.org/repos/asf/amoro.git
The following commit(s) were added to refs/heads/0.7.x by this push:
new a6b7786d3 [AMORO-3050] Fix AMS crashes if javalin stop timeouts (#3052)
a6b7786d3 is described below
commit a6b7786d3bfa938d702fbbd6742a93fcb553a062
Author: Paul Lin <pa...@gmail.com>
AuthorDate: Tue Jul 23 10:55:09 2024 +0800
[AMORO-3050] Fix AMS crashes if javalin stop timeouts (#3052)
(cherry picked from commit 94b2298a504c0a8d847a71d54065dc5e6bbf76da)
Signed-off-by: zhoujinsong <zh...@163.com>
---
.../main/java/org/apache/amoro/server/AmoroServiceContainer.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/AmoroServiceContainer.java b/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/AmoroServiceContainer.java
index 2b1c017b0..52fbe2355 100644
--- a/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/AmoroServiceContainer.java
+++ b/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/AmoroServiceContainer.java
@@ -172,7 +172,11 @@ public class AmoroServiceContainer {
optimizingServiceServer.stop();
}
if (httpServer != null) {
- httpServer.stop();
+ try {
+ httpServer.close();
+ } catch (Exception e) {
+ LOG.error("Error stopping http server", e);
+ }
}
if (tableService != null) {
tableService.dispose();