[ https://issues.apache.org/jira/browse/HDFS-10908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manoj Govindassamy updated HDFS-10908: -------------------------------------- Attachment: HDFS-10908.01.patch Attaching patch to log BlockReader creation errors. Since {{BlockReaderRemote#newBlockReader}} throws IOException with information about the offset issues, logging the IOException should be sufficient to get the reason for BlockReader creation errors. {noformat} throw new IOException("BlockReader: error in first chunk offset (" + firstChunkOffset + ") startOffset is " + startOffset + " for file " + file); {noformat} > Improve StripedBlockReader#createBlockReader error logging > ---------------------------------------------------------- > > Key: HDFS-10908 > URL: https://issues.apache.org/jira/browse/HDFS-10908 > Project: Hadoop HDFS > Issue Type: Improvement > Components: erasure-coding > Reporter: Wei-Chiu Chuang > Assignee: Manoj Govindassamy > Priority: Minor > Attachments: HDFS-10908.01.patch > > > In {{StripedBlockReader#createBlockReader}} if any IOException is thrown, the > error is logged at debug level and then returns a null. This means in a > typical configuration an NPE may be thrown without logging a cause if the > StripedBlockReader object is accessed. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org