ivanzlenko commented on code in PR #5234:
URL: https://github.com/apache/ozone/pull/5234#discussion_r1319963561
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/OMClientRequest.java:
##########
@@ -367,10 +369,19 @@ public UserGroupInformation createUGI() {
omRequest.getUserInfo().getUserName());
return userGroupInformation;
} else {
- // This will never happen, as for every OM request preExecute, we
- // should add userInfo.
- return null;
+ throw new AuthenticationException("User info is not set."
+ + " Please check client auth credentials");
+ }
+ }
+
+ public UserGroupInformation createUGISafety() throws OMException {
Review Comment:
Javadoc required. Not sure if createUGISafety is a good name.
createUGIForApi? Or something like that.
--
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]