From 102ee2d0c2d5ce2df6d66a9b77affae557d72766 Mon Sep 17 00:00:00 2001 From: Abhishek Pal Date: Mon, 28 Oct 2024 13:53:01 +0530 Subject: [PATCH 1/2] HDDS-11507. Add error information to log while handling ServiceException --- .../hadoop/ozone/om/service/AbstractKeyDeletingService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/AbstractKeyDeletingService.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/AbstractKeyDeletingService.java index 7559cf9a729..76c16232e39 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/AbstractKeyDeletingService.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/AbstractKeyDeletingService.java @@ -252,7 +252,7 @@ private int submitPurgeKeysRequest(List results, try { OzoneManagerRatisUtils.submitRequest(ozoneManager, omRequest, clientId, runCount.get()); } catch (ServiceException e) { - LOG.error("PurgeKey request failed. Will retry at next run."); + LOG.error("PurgeKey request failed. Will retry at next run.", e); return 0; } @@ -307,7 +307,7 @@ protected void submitPurgePaths(List requests, try { OzoneManagerRatisUtils.submitRequest(ozoneManager, omRequest, clientId, runCount.get()); } catch (ServiceException e) { - LOG.error("PurgePaths request failed. Will retry at next run."); + LOG.error("PurgePaths request failed. Will retry at next run.", e); } } From 3fc5c8c898b01f44a23c00aa975695f8e2166c88 Mon Sep 17 00:00:00 2001 From: Abhishek Pal Date: Tue, 29 Oct 2024 08:34:49 +0530 Subject: [PATCH 2/2] Addressed missing change in OMRangerBGSyncService --- .../apache/hadoop/ozone/om/service/OMRangerBGSyncService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/OMRangerBGSyncService.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/OMRangerBGSyncService.java index 768c77ad16e..fc6fe2b0c45 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/OMRangerBGSyncService.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/OMRangerBGSyncService.java @@ -390,7 +390,7 @@ public void setOMDBRangerServiceVersion(long version) OzoneManagerRatisUtils.submitRequest(ozoneManager, omRequest, CLIENT_ID, runCount.get()); } catch (ServiceException e) { LOG.error("SetRangerServiceVersion request failed. " - + "Will retry at next run."); + + "Will retry at next run.", e); throw e; } }