hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2956) calling fetchdt without a --renewer argument throws NPE
Date Fri, 10 Jul 2015 01:49:04 GMT

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

Akira AJISAKA commented on HDFS-2956:

Thanks [~vinayrpet] for creating the patch for branch-2. Mostly looks good to me. I noticed
there is a difference in the test between trunk and branch-2.
      // make sure we got back exactly the 1 token we expected
      assertNotNull("Token without renewer shouldn't be null", itr.next());
     assertTrue("token not exist error", itr.hasNext());
     assertNotNull("Token should be there without renewer", itr.next());
I'm thinking we can add {{assertTrue(!itr.hasNext())}} to the trunk as well.

> calling fetchdt without a --renewer argument throws NPE
> -------------------------------------------------------
>                 Key: HDFS-2956
>                 URL: https://issues.apache.org/jira/browse/HDFS-2956
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.0.0-alpha, 3.0.0
>            Reporter: Todd Lipcon
>            Assignee: Vinayakumar B
>              Labels: BB2015-05-TBR
>         Attachments: HDFS-2956-01.patch, HDFS-2956-02.patch, HDFS-2956.03.patch, HDFS-2956.branch-2.03.patch,
> If I call "bin/hdfs fetchdt /tmp/mytoken" without a "--renewer foo" argument, then it
will throw a NullPointerException:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getDelegationToken(ClientNamenodeProtocolTranslatorPB.java:830)
> this is because getDelegationToken is being called with a null renewer

This message was sent by Atlassian JIRA

View raw message