[ https://issues.apache.org/jira/browse/FLINK-6624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16015487#comment-16015487 ]
ASF GitHub Bot commented on FLINK-6624: --------------------------------------- GitHub user kl0u opened a pull request: https://github.com/apache/flink/pull/3938 [FLINK-6624] [cep] Fix SharedBuffer#hashCode(). You can merge this pull request into a Git repository by running: $ git pull https://github.com/kl0u/flink cep-hash Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3938.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3938 ---- commit e28380152a27dcbc794fae5b023e3223699a5813 Author: kkloudas <kklou...@gmail.com> Date: 2017-05-18T09:27:42Z [FLINK-6624] [cep] Fix SharedBuffer#hashCode(). ---- > SharedBuffer#hashCode() uses multiplier in wrong way > ---------------------------------------------------- > > Key: FLINK-6624 > URL: https://issues.apache.org/jira/browse/FLINK-6624 > Project: Flink > Issue Type: Bug > Reporter: Ted Yu > Assignee: Kostas Kloudas > Priority: Minor > > In SharedBuffer.java: > {code} > public int hashCode() { > return (int) (31 * (timestamp ^ timestamp >>> 32) + 31 * > value.hashCode()) + counter; > {code} > Multiplier of 31 is applied to both (timestamp ^ timestamp >>> 32) and > value.hashCode(). > The following is probably the right expression: > {code} > return (int) 31 * (31 * (timestamp ^ timestamp >>> 32) + > value.hashCode()) + counter; > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)