From 6b8026f59f3ac8737371ebd39529ec0d56959e0a Mon Sep 17 00:00:00 2001 From: Apexhit <152136584+Apexhit@users.noreply.github.com> Date: Mon, 27 Nov 2023 10:42:44 +0530 Subject: [PATCH] [GOBBLIN-1962] Fix failed to acquire job lock Fix failed to acquire job lock Jira Id - https://issues.apache.org/jira/browse/GOBBLIN-1962 PayPal Jira Commit id-https://github.paypal.com/apekumar/Apache-Gobblin/commit/3cc5913c47a5aa900c60abb7b98d044e13c0e63d (cherry picked from commit 596848337077094c0106045f4342e7b20b1a3916) --- .../java/org/apache/gobblin/runtime/AbstractJobLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java b/gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java index bf86e628e45..0ec7b147cb5 100644 --- a/gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java +++ b/gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java @@ -961,7 +961,7 @@ private void unlockJob() { try { this.jobLockOptional.get().close(); } catch (IOException e) { - LOG.error(String.format("Failed to close job lock for job %s: %s", this.jobContext.getJobId(), e), e); + LOG.error(String.format("Failed to close job lock for job %s: %s", this.jobProps.getProperty(ConfigurationKeys.JOB_NAME_KEY), e), e); } finally { this.jobLockOptional = Optional.absent(); }