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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.1.1-beta
    • None
    • None
    • 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
          2 kB
          Brandon Li
        2. HDFS-5043.patch
          2 kB
          Brandon Li

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: