You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Zuoming Zhang (JIRA)" <ji...@apache.org> on 2018/06/08 01:41:00 UTC

[jira] [Updated] (MAPREDUCE-7108) TestFileOutputCommitter fails on Windows

     [ https://issues.apache.org/jira/browse/MAPREDUCE-7108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zuoming Zhang updated MAPREDUCE-7108:
-------------------------------------
          Attachment: MAPREDUCE-7108.000.patch
    Target Version/s: 2.9.1, 3.1.0  (was: 3.1.0, 2.9.1)
              Status: Patch Available  (was: Open)

Inside testMapFileOutputCommitterInternal, after calling MapFileOutputFormat.getReaders, close all the readers

> TestFileOutputCommitter fails on Windows
> ----------------------------------------
>
>                 Key: MAPREDUCE-7108
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7108
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.9.1, 3.1.0
>            Reporter: Zuoming Zhang
>            Priority: Minor
>              Labels: Windows
>             Fix For: 2.9.1, 3.1.0
>
>         Attachments: MAPREDUCE-7108.000.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> TestFileOutputCommitter.java fails on Windows.
> Reason:
> This is because in testMapFileOutputCommitterInternal, after executing MapFileOutputFormat.getReaders(outDir, conf), the readers are not properly closed. So other apis that attempt to delete the existing file fails due to the file handler already being used.
>  
> Solution:
> Close all readers after call MapFileOutputFormat.getReaders(outDir, conf);



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org