Skip to content

[7.x] fix composite aggregation tests failing after #76740 (#77691)#77779

Merged
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
Luegg:backport/7.x/pr-77691
Sep 15, 2021
Merged

[7.x] fix composite aggregation tests failing after #76740 (#77691)#77779
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
Luegg:backport/7.x/pr-77691

Conversation

@Luegg
Copy link
Copy Markdown
Contributor

@Luegg Luegg commented Sep 15, 2021

…77691)

Follow up of elastic#77650.

Looks like two issues caused occasional failures:

missingOrder has not been considered in InternalComposite.InternalBucket#compareKey
reverseMul has been ignored in one case in OrdinalValuesSource#compareInternal
The first problem has clearly been introduced by elastic#76740 but the second point is more interesting. As far as I understand, this might have caused problems before but I couldn't find any according test failures in Gradle before yesterday.

In order to preclude further rare test failures I've run the whole CompositeAggregatorTests 3000 times and all tests turned green.
# Conflicts:
#	server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/InternalComposite.java
@Luegg Luegg force-pushed the backport/7.x/pr-77691 branch from 15124d7 to 93ad1ae Compare September 15, 2021 13:41
@Luegg Luegg added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Sep 15, 2021
@elasticsearchmachine elasticsearchmachine merged commit 3696d56 into elastic:7.x Sep 15, 2021
@Luegg Luegg deleted the backport/7.x/pr-77691 branch September 15, 2021 14:53
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 v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants