linyiqun commented on a change in pull request #1358:
URL: https://github.com/apache/hadoop-ozone/pull/1358#discussion_r479650690
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java
##########
@@ -290,6 +290,11 @@ public void validateRequest(OMRequest omRequest) throws
OMException {
throw new OMException("ClientId is null",
OMException.ResultCodes.INVALID_REQUEST);
}
+
+ if (omRequest.getLayoutVersion() == null) {
Review comment:
We might add a comment to say why we should pass layout version in write
type request. That will be good understanding. Others maybe not know this is
used for rolling upgrade check.
----------------------------------------------------------------
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]