umamaheswararao commented on code in PR #3262:
URL: https://github.com/apache/ozone/pull/3262#discussion_r848866123
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMAllocateBlockRequest.java:
##########
@@ -267,4 +274,23 @@ public static OMAllocateBlockRequest getInstance(KeyArgs
keyArgs,
}
return new OMAllocateBlockRequest(omRequest, bucketLayout);
}
+
+ @RequestFeatureValidator(
+ conditions = ValidationCondition.CLUSTER_NEEDS_FINALIZATION,
+ processingPhase = RequestProcessingPhase.PRE_PROCESS,
+ requestType = Type.AllocateBlock
+ )
Review Comment:
I see this method logic seems duplicated mostly except checking
hasECReplicationConfig on specific request. It may be a good idea to take that
condition as param and use this as util method?
--
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]