hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eBugs in Cloud Systems (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-14473) BlockReceiver.receiveBlock() throws an IOException when interrupted
Date Mon, 06 May 2019 14:29:00 GMT
eBugs in Cloud Systems created HDFS-14473:

             Summary: BlockReceiver.receiveBlock() throws an IOException when interrupted
                 Key: HDFS-14473
                 URL: https://issues.apache.org/jira/browse/HDFS-14473
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: eBugs in Cloud Systems

Dear HDFS developers, we are developing a tool to detect exception-related bugs in Java.
Our prototype has spotted the following {{throw}} statement whose exception class and error
message seem to indicate different error conditions. Since we are not very familiar with
HDFS's internal work flow, could you please help us verify if this is a bug, i.e., will the
callers have trouble handling the exception, and will the users/admins have trouble diagnosing
the failure?


Version: Hadoop-3.1.2

File: HADOOP-ROOT/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java

Line: 1070
throw new IOException("Interrupted receiveBlock");{code}
Reason: An {{IOException}} can mean many different errors, while the error message indicates
that {{receiveBlock()}} is interrupted. Will this mismatch be a problem? For example, will
the callers try to handle other {{IOException}} accidentally (and incorrectly) handle the
interrupt? Maybe an {{InterruptedIOException}} will be better?

This message was sent by Atlassian JIRA

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

View raw message