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

Remove the unused method InodeId#checkId()

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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_01.patch
          2 kB
          Jagadesh Kiran N
        2. HDFS-10869.patch
          1 kB
          Jagadesh Kiran N

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: