VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.0, 2.9.2, 3.0.3, 3.3.0, 3.1.2
    • 2.10.0, 3.0.4, 3.3.0, 3.2.1, 2.9.3, 3.1.3
    • fs/oss
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wujinhu wujinhu
            wujinhu wujinhu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment