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

hemanthboyina edited comment on HDFS-14767 at 8/22/19 7:16 PM:
---------------------------------------------------------------

{code:java}
      builder.append("AddCacheDirectiveInfo [")
          .append("id=" + directive.getId() + ",")
          .append("path=" + directive.getPath().toUri().getPath() + ",")
          .append("replication=" + directive.getReplication() + ",")
          .append("pool=" + directive.getPool() + ",")
          .append("expiration=" + directive.getExpiration().getMillis()); {code}
the directive.getPath() .toUri().getPath() was null ,  caused NPE


was (Author: hemanthboyina):
{code:java}
      builder.append("AddCacheDirectiveInfo [")
          .append("id=" + directive.getId() + ",")
          .append("path=" + directive.getPath().toUri().getPath() + ",")
          .append("replication=" + directive.getReplication() + ",")
          .append("pool=" + directive.getPool() + ",")
          .append("expiration=" + directive.getExpiration().getMillis()); {code}
the directive.getPath()  was null ,  caused NPE

> NPE in FSEditLogOp
> ------------------
>
>                 Key: HDFS-14767
>                 URL: https://issues.apache.org/jira/browse/HDFS-14767
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Major
>         Attachments: HDFS-14767.001.patch
>
>
> In Inner class of FSEditLogOp , AddCacheDirectiveInfoOp  toString caused Null 
> Pointer Exception



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to