You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/06/08 15:10:18 UTC
[jira] [Created] (IGNITE-5455) .NET: Incorrect binary object hash
code calculation
Pavel Tupitsyn created IGNITE-5455:
--------------------------------------
Summary: .NET: Incorrect binary object hash code calculation
Key: IGNITE-5455
URL: https://issues.apache.org/jira/browse/IGNITE-5455
Project: Ignite
Issue Type: Bug
Components: platforms
Affects Versions: 2.0
Reporter: Pavel Tupitsyn
Assignee: Pavel Tupitsyn
Priority: Critical
Fix For: 2.1
Hash code is calculated over binary object data with the following code in Java and .NET:
{code}
for (int i = start; i <= end; i++)
hash = 31 * hash + data[i];
{code}
Where {{data}} is {{byte[]}} in Java and .NET.
And {{byte}} is signed in Java and unsigned in .NET.
So in our simple tests on small values it works, but fails on real world data.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)