You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/04/19 18:16:59 UTC

[GitHub] [ozone] avijayanhwx commented on a change in pull request #2142: HDDS-4992. SCM should not use pipelines with HEALTHY_READONLY datanodes

avijayanhwx commented on a change in pull request #2142:
URL: https://github.com/apache/ozone/pull/2142#discussion_r616061599



##########
File path: hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java
##########
@@ -113,6 +117,18 @@
   private File testDir;
   private StorageContainerManager scm;
 
+  private static final int MAX_LV = HDDSLayoutVersionManager.maxLayoutVersion();
+  private static final LayoutVersionProto LARGER_SLV_LAYOUT_PROTO =
+      toLayoutVersionProto(MAX_LV, MAX_LV + 1);
+  private static final LayoutVersionProto SMALLER_SLV_LAYOUT_PROTO =
+      toLayoutVersionProto(MAX_LV, MAX_LV - 1);

Review comment:
       nit. Just to keep things theoretically correct, can we also set the metadata version to MAX_LV - 1. (Since MLV cannot be > SLV)




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org