You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ahmar Suhail (Jira)" <ji...@apache.org> on 2022/04/08 08:21:00 UTC

[jira] [Commented] (HADOOP-18182) S3File to store reference to active S3Object in a field.

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

Ahmar Suhail commented on HADOOP-18182:
---------------------------------------

[~stevel@apache.org] I was looking at this, the S3Object is already referenced [here|https://github.com/apache/hadoop/blob/feature-HADOOP-18028-s3a-prefetch/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/read/S3File.java#L65] which I think should mean that this problem won't occur?

> S3File to store reference to active S3Object in a field.
> --------------------------------------------------------
>
>                 Key: HADOOP-18182
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18182
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.4.0
>            Reporter: Steve Loughran
>            Priority: Major
>
> HADOOP-17338 showed us how recent {{S3Object.finalize()}} can call stream.close() and so close an active stream if a GC happens during a read. replicate the same fix here.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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