HDDS-673. Suppress "Key not found" exception log with stack trace in OM. Contributed by Arpit Agarwal.

(cherry picked from commit c64018026e66b437533d1fdea4b0d92a209e9054)
This commit is contained in:
Arpit Agarwal 2018-10-18 11:51:16 -07:00
parent eeb1d432a8
commit ca1136fb4b

View File

@ -370,7 +370,7 @@ public OmKeyInfo lookupKey(OmKeyArgs args) throws IOException {
}
return OmKeyInfo.getFromProtobuf(KeyInfo.parseFrom(value));
} catch (IOException ex) {
LOG.error("Get key failed for volume:{} bucket:{} key:{}",
LOG.debug("Get key failed for volume:{} bucket:{} key:{}",
volumeName, bucketName, keyName, ex);
throw new OMException(ex.getMessage(),
OMException.ResultCodes.FAILED_KEY_NOT_FOUND);