[ 
https://issues.apache.org/jira/browse/HDFS-13365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16420328#comment-16420328
 ] 

Yiqun Lin commented on HDFS-13365:
----------------------------------

{quote}A note on the TODO, the Namenode does 
namesystem.checkSuperuserPrivilege() which uses FSPermissionChecker but we 
don't have it available.
 We could just check if the user running the command is in the super user group.
 Thoughts?
{quote}
namesystem uses {{NameNode.getRemoteUser()}} as the caller Ugi. We could use 
this to replace following line. This will keep the consistent logic.
{code:java}
// Try to get the ugi in the RPC call.
UserGroupInformation ugi = Server.getRemoteUser();
{code}
I'm not so familiar with {{Tracer}}, for this part codes, maybe let others have 
a look, :).

> RBF: Adding trace support
> -------------------------
>
>                 Key: HDFS-13365
>                 URL: https://issues.apache.org/jira/browse/HDFS-13365
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Íñigo Goiri
>            Assignee: Íñigo Goiri
>            Priority: Major
>         Attachments: HDFS-13365.000.patch, HDFS-13365.001.patch, 
> HDFS-13365.003.patch
>
>
> We should support HTrace and add spans.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to