Skip to content

Commit

Permalink
[HUDI-5373] Different fileids are assigned to the same bucket (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
loukey-lj authored and fengjian committed Apr 5, 2023
1 parent c7770ed commit 4b68f3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void processElement(I i, ProcessFunction<I, Object>.Context context, Coll
bootstrapIndexIfNeed(partition);
Map<Integer, String> bucketToFileId = bucketIndex.computeIfAbsent(partition, p -> new HashMap<>());
final int bucketNum = BucketIdentifier.getBucketId(hoodieKey, indexKeyFields, this.bucketNum);
final String bucketId = partition + bucketNum;
final String bucketId = partition + "/" + bucketNum;

if (incBucketIndex.contains(bucketId)) {
location = new HoodieRecordLocation("I", bucketToFileId.get(bucketNum));
Expand Down

0 comments on commit 4b68f3e

Please sign in to comment.