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

Fix the test case for copying to non-existent dir in TestFsShellCopy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      In TestFsShellCopy#checkPut, there is a following code.

      final Path dstPath = new Path("path");
      final Path childPath = new Path(dstPath, "childPath");
      
      ...
      
      // copy to non-existent subdir
      prepPut(childPath, false, false);
      checkPut(1, srcPath, dstPath, useWindowsPath);
      

      The code expect to test the case when we put a file to non-exsistent directory. But the code delete childPath and then copy to its parent directory (dstPath).

        Attachments

        1. HADOOP-10582.patch
          0.9 kB
          Kousuke Saruta

          Activity

            People

            • Assignee:
              sarutak Kousuke Saruta
              Reporter:
              sarutak Kousuke Saruta
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: