amahussein opened a new pull request #2722:
URL: https://github.com/apache/hadoop/pull/2722


   [MAPREDUCE-7320: ClusterMapReduceTestCase does not clean 
directories](https://issues.apache.org/jira/browse/MAPREDUCE-7320)
   
   Running Junits that extend ClusterMapReduceTestCase generate lots of 
directories and folders all over the place.
   
   This PR addresses organizing the directories generated by the unit test, 
cleaning them up at the beginning of the execution if necessary.
   
   - It touches `MiniYARNCluster.java` in order to change the base dir to 
`target/test-dir/$TEST_CLASS_NAME`
   - test classes affected
   
     - TestMRJobClient,
     - TestStreamingBadRecords,
     - TestClusterMapReduceTestCase,
     - TestBadRecords.
     - TestMRCJCJobClient,
     - TestJobName
   
   I tested the TestUnits that use `MiniYARNCluster.java` such as:
   
   ```bash
   Class
       MiniYARNCluster
   
           TestOSSMiniYarnCluster  (3 usages found)
           TestMRTimelineEventHandling  (4 usages found)
           TestJobHistoryEventHandler  (3 usages found)
           TestHadoopArchiveLogs  (3 usages found)
           TestHadoopArchiveLogsRunner  (3 usages found)
           TestDynamometerInfra  (3 usages found)
           TestDSTimelineV10
           TestDSTimelineV20
           TestDSTimelineV15
           TestUnmanagedAMLauncher  (3 usages found)
           TestApplicationMasterServiceProtocolForTimelineV2
           TestFederationRMFailoverProxyProvider  (3 usages found)
           TestHedgingRequestRMFailoverProxyProvider  (4 usages found)
           TestNoHaRMFailoverProxyProvider  (5 usages found)
           TestRMFailover  (4 usages found)
           TestAMRMClient
           TestAMRMClientPlacementConstraints
           TestAMRMProxy  (5 usages found)
           TestNMClient  (3 usages found)
           TestOpportunisticContainerAllocationE2E  (3 usages found)
           TestYarnClient  (3 usages found)
           TestYarnClientWithReservation  (12 usages found)
           TestYarnCLI  (7 usages found)
           TestContainerManagerSecurity  (2 usages found)
           TestDiskFailures  (2 usages found)
           TestMiniYarnCluster  (9 usages found)
           TestMiniYARNClusterForHA  (2 usages found)
           TestMiniYarnClusterNodeUtilization  (3 usages found)
           TestEncryptedShuffle
   ```
   
   
   MAPREDUCE-7320. fix TestEncryptedShuffle paths
   MAPREDUCE-7320. move cleaning up root directory to setup
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to