-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappings>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:StorageEngine
Description
Elasticsearch Version
main
Installed Plugins
No response
Java Version
bundled
OS Version
--
Problem Description
CollectionUtils.uniquify(new ArrayList<>(List.of(1, 20, 20, 30, 30, 50)), Comparator.naturalOrder())
produces [1, 20, 30, 30, 50]
but should produce [1, 20, 30, 50]
.
Steps to Reproduce
This test when added to CollectionUtilsTests
fails.
public void testUniquifyTwoRuns() {
assertUniquify(List.of(1, 20, 20, 30, 30, 50), Comparator.naturalOrder(), 4);
}
Logs (if relevant)
No response
Metadata
Metadata
Assignees
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappings>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:StorageEngine