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/03/31 07:26:19 UTC

[GitHub] [ozone] elek commented on a change in pull request #2068: HDDS-5011. Introduce ECReplicationConfig and Java based ReplicationConfig implementation

elek commented on a change in pull request #2068:
URL: https://github.com/apache/ozone/pull/2068#discussion_r604656692



##########
File path: hadoop-hdds/interface-server/src/main/proto/ScmServerProtocol.proto
##########
@@ -132,9 +132,13 @@ message AllocateScmBlockRequestProto {
   required uint64 size = 1;
   required uint32 numBlocks = 2;
   required ReplicationType type = 3;
-  required hadoop.hdds.ReplicationFactor factor = 4;
+  optional hadoop.hdds.ReplicationFactor factor = 4;

Review comment:
       > Would an old client which has it set to required, complain if it received a message missing the field?
   
   Good question and I agree that it should be OK. This field will always be filled for STANDALONE / RATIS. Old clients remain compatible as long as they use only existing replication types. It is optional only for EC where we need an exception from the old client anyway, as old client couldn't use new replication types. 
   
    




-- 
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