You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/09/09 00:21:00 UTC
[jira] [Updated] (HDFS-17979) TeeOutputStream.close() should close every wrapped output
[ https://issues.apache.org/jira/browse/HDFS-17979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDFS-17979:
----------------------------------
Labels: pull-request-available (was: )
> TeeOutputStream.close() should close every wrapped output
> ---------------------------------------------------------
>
> Key: HDFS-17979
> URL: https://issues.apache.org/jira/browse/HDFS-17979
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: tools
> Affects Versions: 3.4.1
> Reporter: Sanjay Malakar
> Priority: Minor
> Labels: pull-request-available
>
> The OfflineEditsViewer \{{org.apache.hadoop.hdfs.tools.offlineEditsViewer.TeeOutputStream.close()}} closes its wrapped output streams in a for-each loop. If one \{{java.io.OutputStream.close()}} call throws \{{java.io.IOException}}, the loop exits and every later output is left open.
> {\{close()}} should attempt every output, keep the first \{{java.io.IOException}}, attach later failures as suppressed exceptions, and throw the first one after every output has been attempted. This mirrors the fix in ZOOKEEPER-5055 for \{{FileTxnLog.close()}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org