JyotinderSingh commented on a change in pull request #2867:
URL: https://github.com/apache/ozone/pull/2867#discussion_r756259380
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java
##########
@@ -115,6 +115,22 @@ public OMRequest preExecute(OzoneManager ozoneManager)
throws IOException {
OMException.ResultCodes.INVALID_REQUEST);
}
+ // If this is a Link Bucket, we make sure that its layout matches the
+ // source bucket. This prevents inconsistencies during list operations.
+ if (hasSourceBucket) {
+ try {
+ newBucketInfo.setBucketLayout(
Review comment:
I have added this in `a572156`. Currently the fix is only implemented
for RpcClient#listBuckets. I'm working to get it working for
OmMetadataManagerImpl#listBuckets.
--
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]