[
https://issues.apache.org/jira/browse/HADOOP-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran updated HADOOP-3642:
-----------------------------------
Attachment: hadoop-io-exception.patch
patch updated to fix the style complaints
> add a HadoopIOException that can be thrown in any method that has IOException
> on its signature
> ----------------------------------------------------------------------------------------------
>
> Key: HADOOP-3642
> URL: https://issues.apache.org/jira/browse/HADOOP-3642
> Project: Hadoop Core
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.19.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: hadoop-io-exception.patch, hadoop-io-exception.patch
>
>
> I find myself having to throw IOExceptions a lot, and create new ones -but
> the classes signature varies from java1.5 to 1.6, and the base IOException is
> fairly meaningless. If Hadoop added a HadoopIOException, it could be thrown
> whenever hadoop's own code needed to create new IOExceptions, and possibly be
> differentiated in the catch() logic.
> The biggest disadvantage of doing this is that as IOException is built into
> the JVM, you can be sure that the far end will be able to deserialize it
> under RMI, without having the rest of hadoop on the classpath. This is not a
> feature of hadoop, so should not be an issue. For those of us who do use RMI,
> well, we'd better get our classpaths right.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.