Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10869

Remove the unused method InodeId#checkId()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • namenode
    • None
    • Reviewed

    Description

      The following method in InodeId.java is not used anywhere , We can remove the code

      public static void checkId(long requestId, INode inode)
            throws FileNotFoundException {
          if (requestId != HdfsConstants.GRANDFATHER_INODE_ID && requestId != inode.getId()) {
            throw new FileNotFoundException(
                "ID mismatch. Request id and saved id: " + requestId + " , "
                    + inode.getId() + " for file " + inode.getFullPathName());
          }
        }
      

      Attachments

        1. HDFS-10869.patch
          1 kB
          Jagadesh Kiran N
        2. HDFS-10869_01.patch
          2 kB
          Jagadesh Kiran N

        Issue Links

          Activity

            People

              jagadesh.kiran Jagadesh Kiran N
              jagadesh.kiran Jagadesh Kiran N
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: