Skip to content

[9.0] Fix uniquify to handle multiple successive duplicates (#126889)#126953

Merged
elasticsearchmachine merged 1 commit intoelastic:9.0from
rjernst:backport/9.0/pr-126889
Apr 16, 2025
Merged

[9.0] Fix uniquify to handle multiple successive duplicates (#126889)#126953
elasticsearchmachine merged 1 commit intoelastic:9.0from
rjernst:backport/9.0/pr-126889

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Apr 16, 2025

Backports the following commits to 9.0:

CollectionUtils.uniquify is based on C++ std::unique. However, C++
iterators are not quite the same as Java iterators. In particular,
advancing them only allows grabbing the value once. This commit reworks
uniquify to be based on list indices instead of iterators.

closes elastic#126883
@rjernst rjernst added :Core/Infra/Core Core issues without another label >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Apr 16, 2025
@elasticsearchmachine elasticsearchmachine merged commit 14fbc1e into elastic:9.0 Apr 16, 2025
16 checks passed
@rjernst rjernst deleted the backport/9.0/pr-126889 branch April 16, 2025 20:08
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 :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v9.0.1

2 participants