You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Davin Tjong (Jira)" <ji...@apache.org> on 2024/10/15 23:25:00 UTC
[jira] [Created] (MAPREDUCE-7494) Fix potential file stream leaks caused by interruption
Davin Tjong created MAPREDUCE-7494:
--------------------------------------
Summary: Fix potential file stream leaks caused by interruption
Key: MAPREDUCE-7494
URL: https://issues.apache.org/jira/browse/MAPREDUCE-7494
Project: Hadoop Map/Reduce
Issue Type: Bug
Reporter: Davin Tjong
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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-dev-help@hadoop.apache.org