From 18f9989ff2d3910afad9a0c586e3c7770feefc66 Mon Sep 17 00:00:00 2001 From: hfutatzhanghb Date: Mon, 18 Sep 2023 20:56:45 +0800 Subject: [PATCH] HDFS-17192. Add bock info when constructing remote block reader meets IOException. (#6081). Contributed by farmmamba. Signed-off-by: He Xiaoqiao --- .../org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java index 72584e5f5a..d013b10ef4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java @@ -769,7 +769,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator { LOG.debug("Closed potentially stale remote peer {}", peer, ioe); } else { // Handle an I/O error we got when using a newly created peer. - LOG.warn("I/O error constructing remote block reader.", ioe); + LOG.warn("I/O error constructing remote block reader for block {}", block, ioe); throw ioe; } } finally {