This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new d4f7c44d9fc HDFS-17847. OIV exits with code 0 (success) even when the
output file is incomplete (#8042)
d4f7c44d9fc is described below
commit d4f7c44d9fcf8749a01d10478d23fa83b6193854
Author: smajeti22-dev <[email protected]>
AuthorDate: Sat Oct 25 22:25:02 2025 +0530
HDFS-17847. OIV exits with code 0 (success) even when the output file is
incomplete (#8042)
---
.../hadoop/hdfs/tools/offlineImageViewer/OfflineImageViewerPB.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageViewerPB.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageViewerPB.java
index fe31872304e..646ec314dfd 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageViewerPB.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageViewerPB.java
@@ -265,6 +265,11 @@ public static int run(String[] args) throws Exception {
printUsage();
return -1;
}
+ if ((out != null) && out.checkError()) {
+ System.err.println("CRITICAL FAILURE: PrintStream reported a write
error " +
+ "(e.g., Disk Full).");
+ return -1;
+ }
return 0;
} catch (EOFException e) {
System.err.println("Input file ended unexpectedly. Exiting");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]