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

RBF. Truncate API always fails when dirs use AllResolver oder on Router

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • rbf
    • Reviewed

    Description

      1. prepare a directory in a HASH_ALL/SPACE/RANDOM mount point.
      2. put  a test file with 1024 bytes  to this directory
      3. truncate the file with 100 new length  and this op will fail and throw  a exception that the file does not exist.

       

      After dig it, we should ignore the result of Truncate API in RouterClientProtocol because

      Truncate can return true/false, so don't expect a result.

      After fix it , the code is 

       

      Attachments

        Issue Links

          Activity

            People

              max2049 Max Xie
              max2049 Max Xie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: