hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-5913) Nfs3Utils#getWccAttr() should check attr parameter against null
Date Fri, 07 Feb 2014 23:45:19 GMT
Ted Yu created HDFS-5913:
----------------------------

             Summary: Nfs3Utils#getWccAttr() should check attr parameter against null
                 Key: HDFS-5913
                 URL: https://issues.apache.org/jira/browse/HDFS-5913
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


In RpcProgramNfs3#commit() :
{code}
      Nfs3FileAttributes postOpAttr = null;
      try {
        postOpAttr = writeManager.getFileAttr(dfsClient, handle, iug);
      } catch (IOException e1) {
        LOG.info("Can't get postOpAttr for fileId: " + handle.getFileId());
      }
      WccData fileWcc = new WccData(Nfs3Utils.getWccAttr(preOpAttr), postOpAttr);
{code}
If there is exception, postOpAttr would be null.
However, Nfs3Utils#getWccAttr() dereferences attr parameter directly.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message