You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/09/30 16:17:10 UTC

[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #1454: HDDS-4285. Read is slow due to frequent calls to UGI.getCurrentUser() and getTokens()

xiaoyuyao commented on a change in pull request #1454:
URL: https://github.com/apache/hadoop-ozone/pull/1454#discussion_r497636613



##########
File path: hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java
##########
@@ -193,10 +196,11 @@ public synchronized void initialize() throws IOException {
       if (token != null) {
         UserGroupInformation.getCurrentUser().addToken(token);

Review comment:
       Should we just pass down the token from the caller directly and bypass the UGI addToken/getTokens completely?




----------------------------------------------------------------
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:
users@infra.apache.org



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