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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/10/16 10:45:00 UTC
[jira] [Commented] (MAPREDUCE-7494) File stream leak when LineRecordReader is interrupted
[ https://issues.apache.org/jira/browse/MAPREDUCE-7494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890026#comment-17890026 ]
ASF GitHub Bot commented on MAPREDUCE-7494:
-------------------------------------------
steveloughran commented on PR #7117:
URL: https://github.com/apache/hadoop/pull/7117#issuecomment-2416434667
ok, merged to trunk. Can you push up a cherry to branch 3.4 for yetus to validate it, then I'll merge to there too
> File stream leak when LineRecordReader is interrupted
> -----------------------------------------------------
>
> Key: MAPREDUCE-7494
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-7494
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: client
> Affects Versions: 3.4.0, 3.3.6, 3.4.1
> Reporter: Davin Tjong
> Assignee: Davin Tjong
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> In LineRecordReader, we may open a filestream:
> ```
> fileIn = FutureIO.awaitFuture(builder.build());
> ```
> However, we may be interrupted or otherwise throw an error before `in` is initialized, for example here:
> ```
> fileIn.seek(start);
> ```
> If this happens, the caller has no way to close this file stream causing it to leak.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org