incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Morel (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (S4-30) DefaultHasher hashes keys to negative number
Date Tue, 31 Jan 2012 12:02:10 GMT

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

Matthieu Morel closed S4-30.
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.4
         Assignee: Matthieu Morel

merged into dev branch http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/bac25cb7
                
> DefaultHasher hashes keys to negative number
> --------------------------------------------
>
>                 Key: S4-30
>                 URL: https://issues.apache.org/jira/browse/S4-30
>             Project: Apache S4
>          Issue Type: Bug
>    Affects Versions: 0.4
>         Environment: All - Windows and Linux
>            Reporter: Quoc Nguyen
>            Assignee: Matthieu Morel
>            Priority: Blocker
>             Fix For: 0.4
>
>
> DefaultHasher uses HashAlgorithm hashAlgorithm = HashAlgorithm.FNV1_64_HASH; which hashes
key strings such as 118+18233, 118+17360, 118+17258, 118+18147 and 118+18121 and many more
to negative values which the DefaultPartitioner (int partitionId = (int) (hasher.hash(stringValue)
% partitionCount);) tries to partition the key to incorrect partition.
> Workaround:
> None - stream has those keys, they will get dropped because the partitioner cannot correctly
partition.

--
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

        

Mime
View raw message