Skip to content

Comments

[CELEBORN-1879] Ignore invalid chunk range generated by splitSkewedPartitionLocations#3117

Closed
Z1Wu wants to merge 2 commits intoapache:mainfrom
Z1Wu:feat/c1879
Closed

[CELEBORN-1879] Ignore invalid chunk range generated by splitSkewedPartitionLocations#3117
Z1Wu wants to merge 2 commits intoapache:mainfrom
Z1Wu:feat/c1879

Conversation

@Z1Wu
Copy link
Contributor

@Z1Wu Z1Wu commented Feb 25, 2025

What changes were proposed in this pull request?

Ignore invalid chunk range generated by splitSkewedPartitionLocations

Why are the changes needed?

Current implementation of skew partition split method (splitSkewedPartitionLocations) may generate chunk range where range.left > range.right. Such chunk range is invalid and will cause unnecessary initialization of PartitionReader

Does this PR introduce any user-facing change?

no

How was this patch tested?

ut

@turboFei
Copy link
Member

cc @wangshengjie123

@cfmcgrady
Copy link
Contributor

Thank you for the fix! The bug was introduced in #2373

@wangshengjie123
Copy link
Contributor

wangshengjie123 commented Feb 25, 2025

Nice catch, thanks @Z1Wu

cc @wangshengjie123

Thanks for ping me @turboFei

@RexXiong RexXiong closed this in 18655e2 Feb 26, 2025
@RexXiong
Copy link
Contributor

Thanks, merge to main(v0.6.0)

RexXiong pushed a commit that referenced this pull request Apr 17, 2025
…rtitionLocations

 Ignore invalid chunk range generated by splitSkewedPartitionLocations

Current implementation of skew partition split method (`splitSkewedPartitionLocations`)  may generate chunk range where `range.left` > `range.right`. Such chunk range is invalid and will cause unnecessary initialization of `PartitionReader`

no

ut

Closes #3117 from Z1Wu/feat/c1879.

Authored-by: wuziyi <wuziyi02@corp.netease.com>
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants