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

For HdfsFileStatus, set default value of childrenNum to -1 instead of 0 to avoid confusing applications

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.1.1-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Per discussion in HDFS-4772, default value 0 can confuse application since it can't tell that childNum is not supported by the server or the directory has no child.
      Use -1 instead to avoid this confusion.

        Attachments

        1. HDFS-5043.patch
          2 kB
          Brandon Li
        2. HDFS-5043.patch.2
          2 kB
          Brandon Li

          Issue Links

            Activity

              People

              • Assignee:
                brandonli Brandon Li
                Reporter:
                brandonli Brandon Li
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: