adoroszlai commented on code in PR #4609:
URL: https://github.com/apache/ozone/pull/4609#discussion_r1175068566
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -413,11 +413,8 @@ private OmKeyInfo readKeyInfo(OmKeyArgs args) throws
IOException {
if (ex instanceof OMException) {
throw ex;
}
- if (LOG.isDebugEnabled()) {
- LOG.debug("Get key failed for volume:{} bucket:{} key:{}", volumeName,
- bucketName, keyName, ex);
- }
- throw new OMException(ex.getMessage(), KEY_NOT_FOUND);
+ throw new OMException("Error reading key metadata: " + keyName, ex,
Review Comment:
Should the message include volume and bucket name?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]