[
https://issues.apache.org/jira/browse/HADOOP-7425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
steven zhuang updated HADOOP-7425:
----------------------------------
Affects Version/s: 0.20.2
0.20.205.0
Status: Patch Available (was: Open)
so glad this problem is updated.
and Robert, I think the given patch might not point out how the problem is
gonna happen. the tested object should be an object from a class implements
these two interfaces: Configurable, JobConfigurable, only in this case will the
object be configured twice(1. setConf and 2. configure).
> ReflectionUtils.setConf would configure anything Configurable twice
> -------------------------------------------------------------------
>
> Key: HADOOP-7425
> URL: https://issues.apache.org/jira/browse/HADOOP-7425
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: 0.23.0, 0.21.0, 0.20.205.0, 0.20.2
> Reporter: steven zhuang
> Labels: patch
> Attachments: HADOOP-7425.patch, test.tar
>
>
> In the setConf method of org.apache.hadoop.util.ReflectionUtils, any
> instance of Configurable would be configured twice.
> In 0.21.0, KeyFieldBasedPartitioner implements the Configurable interface.
> When configured twice, it get two KeyDescription and gives out wrong
> partition number.
> public static void setConf(Object theObject, Configuration conf) {
> if (conf != null) {
> if (theObject instanceof Configurable) {
> ((Configurable) theObject).setConf(conf);
> }
> setJobConf(theObject, conf);
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira