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 "Sanjay Malakar (Jira)" <ji...@apache.org> on 2026/09/09 00:09:00 UTC
[jira] [Created] (HDFS-17979) TeeOutputStream.close() should close every wrapped output
Sanjay Malakar created HDFS-17979:
-------------------------------------
Summary: 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
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