You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Lucian Iordache <lu...@gmail.com> on 2011/05/20 12:38:58 UTC
TableSplit not implementing "hashCode" problem
Hi guys,
I've just found a problem with the class TableSplit. It implements "equals",
but it does not implement hashCode also, as it should have.
I've discovered it by trying to use a HashSet of TableSplit's, and I've
noticed that some duplicate splits are added to the set.
The only option I have for now is to extend TableSplit and to use the
subclass.
I use cloudera cdh3u0 version of hadoop.
Do you know about this problem? Should I open a Jira issue for that, or it
already exists?
Thanks,
Lucian
Re: TableSplit not implementing "hashCode" problem
Posted by Lucian Iordache <lu...@gmail.com>.
Hello,
Thanks, you are right, I will do that.
Regards,
Lucian
On Fri, May 20, 2011 at 4:08 PM, Harsh J <ha...@cloudera.com> wrote:
> Hello Lucian,
>
> TableSplit appears to be a HBase component. Bugs/Patches against HBase
> ought to go to the HBASE Jira project.
>
> On Fri, May 20, 2011 at 4:08 PM, Lucian Iordache
> <lu...@gmail.com> wrote:
> > Hi guys,
> >
> > I've just found a problem with the class TableSplit. It implements
> "equals",
> > but it does not implement hashCode also, as it should have.
> > I've discovered it by trying to use a HashSet of TableSplit's, and I've
> > noticed that some duplicate splits are added to the set.
> >
> > The only option I have for now is to extend TableSplit and to use the
> > subclass.
> > I use cloudera cdh3u0 version of hadoop.
> >
> > Do you know about this problem? Should I open a Jira issue for that, or
> it
> > already exists?
> >
> > Thanks,
> > Lucian
> >
>
>
>
> --
> Harsh J
>
Re: TableSplit not implementing "hashCode" problem
Posted by Harsh J <ha...@cloudera.com>.
Hello Lucian,
TableSplit appears to be a HBase component. Bugs/Patches against HBase
ought to go to the HBASE Jira project.
On Fri, May 20, 2011 at 4:08 PM, Lucian Iordache
<lu...@gmail.com> wrote:
> Hi guys,
>
> I've just found a problem with the class TableSplit. It implements "equals",
> but it does not implement hashCode also, as it should have.
> I've discovered it by trying to use a HashSet of TableSplit's, and I've
> noticed that some duplicate splits are added to the set.
>
> The only option I have for now is to extend TableSplit and to use the
> subclass.
> I use cloudera cdh3u0 version of hadoop.
>
> Do you know about this problem? Should I open a Jira issue for that, or it
> already exists?
>
> Thanks,
> Lucian
>
--
Harsh J