Skip to content

Commit 453660b

Browse files
Handle all exceptions if call to "/quitquitquit" fails. Otherwise the failure causes pod to just hang. (#34)
1 parent b806979 commit 453660b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform-service-framework/src/main/java/org/hypertrace/core/serviceframework/PlatformServiceLauncher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.hypertrace.core.serviceframework;
22

3-
import java.io.IOException;
43
import org.apache.http.client.HttpClient;
54
import org.apache.http.client.methods.HttpPost;
65
import org.apache.http.impl.client.HttpClients;
@@ -63,7 +62,7 @@ private static void finalizeService() {
6362
try {
6463
httpclient.execute(httppost);
6564
LOGGER.info("Request to pilot succeeded");
66-
} catch (IOException e) {
65+
} catch (Exception e) {
6766
LOGGER.error("Error while calling quitquitquit", e);
6867
}
6968
}

0 commit comments

Comments
 (0)