You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ivanzlenko (via GitHub)" <gi...@apache.org> on 2023/09/08 10:33:27 UTC
[GitHub] [ozone] ivanzlenko commented on a diff in pull request #5234: HDDS-9196: set thread local s3auth to stripes flusher
ivanzlenko commented on code in PR #5234:
URL: https://github.com/apache/ozone/pull/5234#discussion_r1319681169
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/upgrade/OMFinalizeUpgradeRequest.java:
##########
@@ -67,7 +68,12 @@ public OMClientResponse validateAndUpdateCache(
try {
if (ozoneManager.getAclsEnabled()) {
- final UserGroupInformation ugi = createUGI();
+ UserGroupInformation ugi;
+ try {
Review Comment:
Can we wrap it in another method, so we can prevent code duplication
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/upgrade/OMFinalizeUpgradeRequest.java:
##########
@@ -67,7 +68,12 @@ public OMClientResponse validateAndUpdateCache(
try {
if (ozoneManager.getAclsEnabled()) {
- final UserGroupInformation ugi = createUGI();
+ UserGroupInformation ugi;
+ try {
+ ugi = createUGI();
+ } catch (AuthenticationException e) {
+ throw new RuntimeException(e);
Review Comment:
Do not throw RuntimeException
--
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: issues-unsubscribe@ozone.apache.org
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