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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • fs
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: