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)
  • Loading branch information
devabhishekpal authored Oct 29, 2024
1 parent 980b960 commit ab16cbe
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,
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;
}

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

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

0 comments on commit ab16cbe

Please sign in to comment.