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

ViewFsFileStatus.toString() is broken

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • fs
    • None
    • Reviewed

    Description

      ViewFsFileStatus.toString is broken. Following code snippet :

      FileStatus stat= somefunc(); // somefunc() returns an instance of ViewFsFileStatus
      System.out.println("path:" + stat.getPath());
            System.out.println(stat.toString());
      

      produces the output:

      path:viewfs://xxxxxxxxx.com/user/XXXXX/tmp-48
      ViewFsFileStatus{path=null; isDirectory=false; length=0; replication=0; blocksize=0; modification_time=0; access_time=0; owner=; group=; permission=rw-rw-rw-; isSymlink=false}
      

      Note that "path=null" is not correct.

      Attachments

        1. HADOOP-10054.002.patch
          2 kB
          Hanisha Koneru
        2. HADOOP-10054.001.patch
          2 kB
          Hanisha Koneru

        Issue Links

          Activity

            People

              hanishakoneru Hanisha Koneru
              paulhan Paul Han
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: