You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "omalley (via GitHub)" <gi...@apache.org> on 2023/02/07 18:56:42 UTC

[GitHub] [hadoop] omalley commented on a diff in pull request #5346: HDFS-16901: RBF: Propagates real user's username via the caller context, when a proxy user is being used.

omalley commented on code in PR #5346:
URL: https://github.com/apache/hadoop/pull/5346#discussion_r1099074190


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcClient.java:
##########
@@ -492,6 +492,7 @@ public Object invokeMethod(
     }
 
     addClientInfoToCallerContext();
+    addRealUserToCallerContext(ugi);

Review Comment:
   Let's add the user information in addClientInfoToCallerContext so that we only have to rebuild the caller context once.



-- 
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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org