From b7ed78c6a37c447696fbb10b2193fd4f94dee0a9 Mon Sep 17 00:00:00 2001 From: Junfan Zhang Date: Fri, 1 Sep 2023 11:26:12 +0800 Subject: [PATCH] improvement(client): throw the exception when submitting to Yarn (#680) Sometimes, if you specify the non-existing queue name, the client will exit but no any exception. After this, the exception will show the problem --- tony-core/src/main/java/com/linkedin/tony/TonyClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tony-core/src/main/java/com/linkedin/tony/TonyClient.java b/tony-core/src/main/java/com/linkedin/tony/TonyClient.java index 209059ef..d51856af 100644 --- a/tony-core/src/main/java/com/linkedin/tony/TonyClient.java +++ b/tony-core/src/main/java/com/linkedin/tony/TonyClient.java @@ -1341,7 +1341,7 @@ public int start() { result = run(); } catch (InterruptedException | YarnException interruptedException) { try { - LOG.info("Force killing application due to accepting interruption semaphore."); + LOG.info("Force killing application due to accepting interruption semaphore.", interruptedException); forceKillApplication(); } catch (Exception e) { LOG.error("Errors on killing application when tony client throws exception", e);