bharatviswa504 commented on a change in pull request #381: HDDS-2781. Add
ObjectID and updateID to BucketInfo to avoid replaying transactions
URL: https://github.com/apache/hadoop-ozone/pull/381#discussion_r361206631
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketSetPropertyRequest.java
##########
@@ -168,12 +191,17 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
omResponse.setSetBucketPropertyResponse(
SetBucketPropertyResponse.newBuilder().build());
- omClientResponse =
- new OMBucketSetPropertyResponse(omBucketInfo, omResponse.build());
+ omClientResponse = new OMBucketSetPropertyResponse(
+ omResponse.build(), omBucketInfo);
+ LOG.debug("Setting bucket property for bucket:{} in volume:{}",
+ bucketName, volumeName);
} catch (IOException ex) {
+ LOG.error("Setting bucket property failed for bucket:{} in volume:{}",
Review comment:
Same here, can we move logging outside the lock.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]