-
Notifications
You must be signed in to change notification settings - Fork 2.4k
StreamStringTermsAggregator explicitly asserts single leaf #19416
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
base: main
Are you sure you want to change the base?
StreamStringTermsAggregator explicitly asserts single leaf #19416
Conversation
❌ Gradle check result for f95c056: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Mikhail Khludnev <[email protected]>
f95c056
to
9b1eb64
Compare
...c/main/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregator.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregator.java
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19416 +/- ##
============================================
- Coverage 73.09% 73.08% -0.02%
+ Complexity 70553 70496 -57
============================================
Files 5716 5716
Lines 322926 322935 +9
Branches 46770 46770
============================================
- Hits 236032 236004 -28
+ Misses 67882 67873 -9
- Partials 19012 19058 +46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Dropping two RandomIndexWriters still cause flakiness ;( (before). Signed-off-by: Mikhail Khludnev <[email protected]>
...t/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregatorTests.java
Show resolved
Hide resolved
...t/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregatorTests.java
Show resolved
Hide resolved
...t/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregatorTests.java
Show resolved
Hide resolved
If the single segment invariant have place, I suppose it's ready for merge. 🙏🏼 |
❕ Gradle check result for 10130e0: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
@bowenlan-amzn Can you take a look? |
...c/main/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregator.java
Show resolved
Hide resolved
...c/main/java/org/opensearch/search/aggregations/bucket/terms/StreamStringTermsAggregator.java
Show resolved
Hide resolved
Thank you again @mkhludnev for taking care of it as a follow up. I don't want to call it invariant, but at least for now, per segment flushing is the right assumption, but might break in future once we start supporting other modes i.e. intra segment flush or multi-segment flush. I think then we can change this condition and the tests accordingly. So for now, this check sounds very reasonable. I will wait for @bowenlan-amzn to share his opinion. |
Spent some time understanding the context here, and this change makes sense to me. OpenSearch/server/src/main/java/org/opensearch/search/internal/ContextIndexSearcher.java Lines 398 to 408 in 47aa8ee
@mkhludnev hope I'm understanding this correctly @rishabhmaurya @harshavamsi I think this is testing problem but need to be careful in the following PRs so to not introduce flaky tests. If we can mock the ContextIndexSearcher for streaming aggregation unit test, that would solve this problem even better. |
Signed-off-by: Mikhail Khludnev <[email protected]>
…al count and values. Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>
Hi @bowenlan-amzn |
❌ Gradle check result for fab4553: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Mikhail Khludnev <[email protected]>
❌ Gradle check result for 6347a4a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
aghh... adding assert into
|
❕ Gradle check result for 2771ebc: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: m.khludnev <[email protected]>
2771ebc
to
0f84b06
Compare
Signed-off-by: m.khludnev <[email protected]>
❌ Gradle check result for 3c0350f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Continuation of #19404.