Skip to content

Fixing ModelLoaderUtils.split() to pass tests (#126009)#126560

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
prwhelan:backport/8.x/126009
Apr 9, 2025
Merged

Fixing ModelLoaderUtils.split() to pass tests (#126009)#126560
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
prwhelan:backport/8.x/126009

Conversation

@prwhelan
Copy link
Member

@prwhelan prwhelan commented Apr 9, 2025

Backport #126009

Prior to these changes, the split method would fail tests. Additionally,
the method had code which could be refactored.

A new variable (numRanges) was introduced to replace the direct usage of numStreams.
The method was refactored to make the code easier to understand. Javadocs were updated.
Tests for this method now pass.
@prwhelan prwhelan added >bug :ml Machine learning backport Team:ML Meta label for the ML team auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.19.0 labels Apr 9, 2025
@elasticsearchmachine elasticsearchmachine merged commit 0c65592 into elastic:8.x Apr 9, 2025
15 checks passed
@prwhelan prwhelan deleted the backport/8.x/126009 branch April 9, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :ml Machine learning Team:ML Meta label for the ML team v8.19.0

3 participants