You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/02/01 02:41:00 UTC

[jira] [Updated] (HUDI-5669) BucketIndexPartitioner maybe cause task data skew

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

ASF GitHub Bot updated HUDI-5669:
---------------------------------
    Labels: pull-request-available  (was: )

> BucketIndexPartitioner maybe cause task  data skew
> --------------------------------------------------
>
>                 Key: HUDI-5669
>                 URL: https://issues.apache.org/jira/browse/HUDI-5669
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: sandy du
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.14.0
>
>
> BucketIndexPartitioner  partition method  curBucket call  twice hashCode  maybe cause  data skew
> {code:java}
> public int partition(HoodieKey key, int numPartitions) {
>   int curBucket = BucketIdentifier.getBucketId(key, indexKeyFields, bucketNum);
>   int globalHash = (key.getPartitionPath() + curBucket).hashCode() & Integer.MAX_VALUE;
>   return BucketIdentifier.mod(globalHash, numPartitions);
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)