XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0, 2.9.2, 3.0.3, 3.3.0, 3.1.2
    • Fix Version/s: 2.10.0, 3.0.4, 3.3.0, 3.2.1, 2.9.3, 3.1.3
    • Component/s: fs/oss
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Returned status of copyFile and copyDirectory are ignored. It's OK most of the time.

      if (srcStatus.isDirectory()) {
          copyDirectory(srcPath, dstPath);
      } else {
          copyFile(srcPath, srcStatus.getLen(), dstPath);
      }
      	
      return srcPath.equals(dstPath) || delete(srcPath, true);

      However, oss fs can not catch errors when rename from one dir to another if the src dir is being deleted. 

       

      Another improvement is logging optimization. Changing log level to debug.

        Attachments

        1. HADOOP-16191.001.patch
          6 kB
          wujinhu

          Activity

            People

            • Assignee:
              wujinhu wujinhu
              Reporter:
              wujinhu wujinhu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: