[
https://issues.apache.org/jira/browse/HADOOP-12831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15160006#comment-15160006
]
Mingliang Liu commented on HADOOP-12831:
----------------------------------------
Thanks [~gtCarrera9] for proposing the concern.
In the current patch, my intension was that there were a few other callsites
that create a {{DataChecksum}} object but do not check the null return value.
Users may meet similar problems with vague NPE message in these places.
It makes sense to me to narrow the change to the {{ChecksumFileSystem}} as I'm
not 100% sure about the {{DataChecksum#newDataChecksum}} precondition.
> LocalFS/FSOutputSummer NPEs in constructor if bytes per checksum set to 0
> --------------------------------------------------------------------------
>
> Key: HADOOP-12831
> URL: https://issues.apache.org/jira/browse/HADOOP-12831
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.8.0
> Reporter: Steve Loughran
> Assignee: Mingliang Liu
> Priority: Minor
> Attachments: HADOOP-12831.000.patch, HADOOP-12831.001.patch
>
>
> If you set the number of bytes per checksum to zero,
> {code}
> conf.setInt(LocalFileSystemConfigKeys.LOCAL_FS_BYTES_PER_CHECKSUM_KEY, 0)
> {code}
> then create a "file://" instance, you get to see a stack trace
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)