[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15000459#comment-15000459
 ] 

Jason Lowe commented on MAPREDUCE-6533:
---------------------------------------

The root directory should be the parent rather than a new parent, that way 
we're not scribbling random files in a directory shared by other things and 
other tests.  TEST_ROOT_DIR should be something like this:
{code}
  private static final Path TEST_ROOT_DIR = new Path(
      System.getProperty("test.build.data",
          System.getProperty("java.io.tmpdir")),
      TestClientDistributedCacheManager.class.getSimpleName());
{code}

And then the tearDown function can simply call 
FileUtil.fullyDelete(TEST_ROOT_DIR) rather than cleaning up individual files 
and having to maintain the list of potential things that could be leaked there.

> testDetermineCacheVisibilities of TestClientDistributedCacheManager is broken
> -----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6533
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6533
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Chang Li
>            Assignee: Chang Li
>         Attachments: MAPREDUCE-6533.2.patch, MAPREDUCE-6533.3.patch, 
> MAPREDUCE-6533.4.patch, MAPREDUCE-6533.4.patch, MAPREDUCE-6533.5.patch, 
> MAPREDUCE-6533.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to