Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15101

what testListStatusFile verified not consistent with listStatus declaration in FileSystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.0.0-beta1
    • None
    • fs, test
    • None

    Description

        @Test
        public void testListStatusFile() throws Throwable {
          describe("test the listStatus(path) on a file");
          Path f = touchf("liststatusfile");
          verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f));
        }
      

      In this case, first create a file f, then listStatus on f,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e.

      " 
      List the statuses of the files/directories in the given path if the path is a directory.
      Parameters:
      f given path
      Returns:
      the statuses of the files/directories in the given patch
      "
      

      Which is the expected? The behave in fs contract test or in FileSystem?

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhoutai.zt zhoutai.zt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: