-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Transform] Always pick the user maxPageSize value #109876
Conversation
maxPageSize's update functionality has been reprioritized. If a user calls the update API to change the max page size, that update will lock out other threads from changing the max page size. Once the lock is released, the other threads will check again if they can reset the max page size and otherwise keep the value that the user just updated with. Fix elastic#109844
Hi @prwhelan, I've created a changelog YAML for you. |
@elasticmachine update branch |
Pinging @elastic/ml-core (Team:ML) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth writing a test for the changes? Looks like this was to fix a failing test so maybe that's good enough?
Well I wrote one, I'm not sure if it's a good one, but I'll update this PR and we can always revert it if we don't like it. I tend to prefer when expectations are represented in tests, so I'm inclined to include it, but it requires knowing how the indexer is implemented so it may be obnoxious to maintain so I'm okay with omitting it (which was my initial thought) |
@elasticmachine update branch |
The related test is failing on 8.14, should this fix be backported? |
maxPageSize's update functionality has been reprioritized. If a user calls the update API to change the max page size, that update will lock out other threads from changing the max page size. Once the lock is released, the other threads will check again if they can reset the max page size and otherwise keep the value that the user just updated with. Relate elastic#109844 Fix elastic#109876
maxPageSize's update functionality has been reprioritized. If a user calls the update API to change the max page size, that update will lock out other threads from changing the max page size. Once the lock is released, the other threads will check again if they can reset the max page size and otherwise keep the value that the user just updated with. Relate #109844 Fix #109876
maxPageSize's update functionality has been reprioritized. If a user calls the update API to change the max page size, that update will lock out other threads from changing the max page size. Once the lock is released, the other threads will check again if they can reset the max page size and otherwise keep the value that the user just updated with.
Fix #109844