Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2493

TestDistcpMain deletes action.xml from wrong filesystem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: tests
    • Labels:

      Description

      In the TestDistcpMain#testMain test case, it is deleting a file using HDFS FileSystem instance which actually created on a local FileSystem.

      // getting file hadoop system instance 
      FileSystem fs = getFileSystem();
      ...
      // creating a storing file on local file system
      File actionXml = new File(getTestCaseDir(), "action.xml");
      ...
      // Now trying to delete the file on hadoop file system
      fs.delete(new Path(getTestCaseDir(), "action.xml"), true);
      

        Attachments

        1. OOZIE-2493-03.patch
          1 kB
          Abhishek Bafna
        2. OOZIE-2493-02.patch
          0.7 kB
          Abhishek Bafna
        3. OOZIE-2493.patch
          0.6 kB
          Abhishek Bafna

          Issue Links

            Activity

              People

              • Assignee:
                abhishekbafna Abhishek Bafna
                Reporter:
                abhishekbafna Abhishek Bafna
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: