You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jingsong Lee (Jira)" <ji...@apache.org> on 2022/07/26 08:45:00 UTC
[jira] [Closed] (FLINK-28687) BucketSelector is wrong when hashcode is negative
[ https://issues.apache.org/jira/browse/FLINK-28687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jingsong Lee closed FLINK-28687.
--------------------------------
Resolution: Fixed
master: ff697ba12a80f51702a5412c2deb6d4f89a966ff
release-0.2: 0fc2c32db3cf3aab4a0887f24f22eed5b415fb27
> BucketSelector is wrong when hashcode is negative
> -------------------------------------------------
>
> Key: FLINK-28687
> URL: https://issues.apache.org/jira/browse/FLINK-28687
> Project: Flink
> Issue Type: Bug
> Components: Table Store
> Reporter: Jingsong Lee
> Assignee: Jingsong Lee
> Priority: Blocker
> Labels: pull-request-available
> Fix For: table-store-0.2.0
>
>
> The calculation of bucket should be `Math.abs(hashcode % numBucket)` instead of `hashcode % numBucket`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)