You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2009/11/17 22:32:39 UTC

[jira] Updated: (THRIFT-628) Hash code method for _Fields objects does not behave as expected

     [ https://issues.apache.org/jira/browse/THRIFT-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury updated THRIFT-628:
---------------------------------

          Component/s: Compiler (Java)
          Description: It turns out that Enums in Java don't have good hashcode behavior. It uses object ID, which can be inconsistent between different invocations of the same application, which breaks things like Hadoop partitioning. We should use the hash of the actual thrift field id instead of the hash of the enum version of the field.
    Affects Version/s: 0.2
        Fix Version/s: 0.2
             Assignee: Bryan Duxbury

> Hash code method for _Fields objects does not behave as expected
> ----------------------------------------------------------------
>
>                 Key: THRIFT-628
>                 URL: https://issues.apache.org/jira/browse/THRIFT-628
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Java)
>    Affects Versions: 0.2
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Critical
>             Fix For: 0.2
>
>
> It turns out that Enums in Java don't have good hashcode behavior. It uses object ID, which can be inconsistent between different invocations of the same application, which breaks things like Hadoop partitioning. We should use the hash of the actual thrift field id instead of the hash of the enum version of the field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.