Skip to content

[8.8] [ML] fix possible race condition in frequent item sets aggregation (#95860)#95879

Merged
elasticsearchmachine merged 1 commit intoelastic:8.8from
hendrikmuhs:backport/8.8/pr-95860
May 5, 2023
Merged

[8.8] [ML] fix possible race condition in frequent item sets aggregation (#95860)#95879
elasticsearchmachine merged 1 commit intoelastic:8.8from
hendrikmuhs:backport/8.8/pr-95860

Conversation

@hendrikmuhs
Copy link
Copy Markdown

Backports the following commits to 8.8:

…lastic#95860)

Refactorings done in elastic#94023. improved memory management but also made it possible to run into a race condition in DelegatingCircuitBreaker. This change makes DelegatingCircuitBreaker thread-safe.

This change is a quick-fix with low risk. Eventually DelegatingCircuitBreaker should be removed. Work on that is underway: elastic#89437. Under that circumstances the change is reasonable to me. The added locking overhead shouldn't be a problem, re-allocations happen rarely and there is just the disconnect case where 2 threads potentially access the structure at the same time.

fixes elastic#95681
@hendrikmuhs hendrikmuhs added :ml Machine learning >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:ML Meta label for the ML team labels May 5, 2023
@elasticsearchmachine elasticsearchmachine merged commit ddeab83 into elastic:8.8 May 5, 2023
@hendrikmuhs hendrikmuhs deleted the backport/8.8/pr-95860 branch May 5, 2023 13:23
@gmarouli gmarouli added v8.8.0 and removed v8.8.1 labels May 11, 2023
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 :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants