From b68e0c7a73c274fb3ab1ea1360acebd66b29f16d Mon Sep 17 00:00:00 2001 From: Abhishek Pal <43001336+devabhishekpal@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:31:18 +0530 Subject: [PATCH] HDDS-11507. Add error information to log while handling ServiceException. (#7367) (cherry picked from commit ab16cbe05dd7bb097c5d3895fa438a0330532749) --- .../hadoop/ozone/om/service/AbstractKeyDeletingService.java | 4 ++-- .../apache/hadoop/ozone/om/service/OMRangerBGSyncService.java | 2 +- 2 files changed, 3 insertions(+), 3 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 9f61cdff8974..bc9f7c365b5a 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, ozoneManager.getOmRatisServer().submitRequest(omRequest, raftClientRequest); } 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; } @@ -321,7 +321,7 @@ protected void submitPurgePaths(List requests, .submitRequest(null, omRequest); } } catch (ServiceException e) { - LOG.error("PurgePaths request failed. Will retry at next run."); + LOG.error("PurgePaths request failed. Will retry at next run.", e); } } 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 45112037c1b9..5bf42a1839c3 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 @@ -407,7 +407,7 @@ public void setOMDBRangerServiceVersion(long version) raftClientRequest); } catch (ServiceException e) { LOG.error("SetRangerServiceVersion request failed. " - + "Will retry at next run."); + + "Will retry at next run.", e); throw e; } }