You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by bh...@apache.org on 2021/07/28 06:50:35 UTC

[ozone] 02/03: reuse ugi

This is an automated email from the ASF dual-hosted git repository.

bharat pushed a commit to branch HDDS-5501
in repository https://gitbox.apache.org/repos/asf/ozone.git

commit ef5a888feeb1bd1e7751f65336a259ee7f80c68f
Author: Bharat Viswanadham <bh...@apache.org>
AuthorDate: Tue Jul 27 14:13:14 2021 +0530

    reuse ugi
---
 .../src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
index 8a4fc23..b30c91f 100644
--- a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
+++ b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
@@ -811,7 +811,7 @@ public class RpcClient implements ClientProtocol {
       UserGroupInformation loginUser = UserGroupInformation.getLoginUser();
       if (!ugi.getShortUserName().equals(loginUser.getShortUserName())) {
         UserGroupInformation proxyUser = UserGroupInformation.createProxyUser(
-            ugi.getShortUserName(), UserGroupInformation.getLoginUser());
+            ugi.getShortUserName(), loginUser);
         decrypted = proxyUser.doAs(
             (PrivilegedExceptionAction<KeyProvider.KeyVersion>) () -> {
               return OzoneKMSUtil.decryptEncryptedDataEncryptionKey(feInfo,

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org