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 07:51:00 UTC

[jira] [Created] (FLINK-28687) BucketSelector is wrong when hashcode is negative

Jingsong Lee created FLINK-28687:
------------------------------------

             Summary: 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
             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)