rakeshadr commented on a change in pull request #1841:
URL: https://github.com/apache/ozone/pull/1841#discussion_r565514300
##########
File path:
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/TestOMRequestUtils.java
##########
@@ -439,6 +460,20 @@ public static void addBucketToDB(String volumeName, String
bucketName,
return metadataList;
}
+ public static List< HddsProtos.KeyValue> getMetadataListV1() {
+ List<HddsProtos.KeyValue> metadataList = new ArrayList<>();
+ metadataList.add(HddsProtos.KeyValue.newBuilder().setKey("key1").setValue(
+ "value1").build());
+ metadataList.add(HddsProtos.KeyValue.newBuilder().setKey("key2").setValue(
+ "value2").build());
+ metadataList.add(HddsProtos.KeyValue.newBuilder().setKey(
+ OMConfigKeys.OZONE_OM_LAYOUT_VERSION).setValue(
+ OMConfigKeys.OZONE_OM_LAYOUT_VERSION_V1).build());
+ metadataList.add(HddsProtos.KeyValue.newBuilder().setKey(
+ OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS).setValue(
+ "false").build());
Review comment:
Like I explained in below comment, test is to verify the stored elements
can be matched against bucketInfo and there is no relation with FSO enabled or
not. If required I can make `OZONE_OM_ENABLE_FILESYSTEM_PATHS=true` value,
should I change to true?
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]