Skip to content

Commit

Permalink
HDDS-11507. Add error information to log while handling ServiceExcept…
Browse files Browse the repository at this point in the history
…ion. (apache#7367)

(cherry picked from commit ab16cbe)
  • Loading branch information
devabhishekpal authored and xichen01 committed Nov 8, 2024
1 parent a2d44a6 commit b68e0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private int submitPurgeKeysRequest(List<DeleteBlockGroupResult> 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;
}

Expand Down Expand Up @@ -321,7 +321,7 @@ protected void submitPurgePaths(List<PurgePathRequest> 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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b68e0c7

Please sign in to comment.