opensearch-project / opensearch-project/OpenSearch
[BUG] Sandbox flaky test failure for AnalyticsQueryTaskCleanupIT
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.7k
- Forks
- 3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 108
Description
Describe the bug
Test testQtfFetchCancelTearsDownAndCleansUp of AnalyticsQueryTaskCleanupIT suite fails intermittently with below error
AnalyticsQueryTaskCleanupIT > testQtfFetchCancelTearsDownAndCleansUp FAILED
java.lang.AssertionError: injected failure on indices:data/read/analytics/fetch_by_row_ids must fail the QTF query, not return (response=org.opensearch.ppl.action.PPLResponse@6d6326e9)
at __randomizedtesting.SeedInfo.seed([47CD2BA433B27B2A:CE953F2EA8F7C393]:0)
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertNotNull(Assert.java:713)
at org.opensearch.analytics.cancellation.AnalyticsQueryTaskCleanupIT.assertQtfInjectedFailureSurfacesAndCleansUp(AnalyticsQueryTaskCleanupIT.java:611)
at org.opensearch.analytics.cancellation.AnalyticsQueryTaskCleanupIT.testQtfFetchCancelTearsDownAndCleansUp(AnalyticsQueryTaskCleanupIT.java:580)
REPRODUCE WITH: ./gradlew ':sandbox:qa:analytics-engine-coordinator:internalClusterTest' --tests 'org.opensearch.analytics.cancellation.AnalyticsQueryTaskCleanupIT.testQtfFetchCancelTearsDownAndCleansUp' -Dtests.seed=47CD2BA433B27B2A -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=zh-Hans -Dtests.timezone=America/North_Dakota/Center -Druntime.java=25
Example CI run - https://github.com/opensearch-project/OpenSearch/actions/runs/31486689089/job/93763602514?pr=22415
Related component
Search
To Reproduce
./gradlew ':sandbox:qa:analytics-engine-coordinator:internalClusterTest' --tests 'org.opensearch.analytics.cancellation.AnalyticsQueryTaskCleanupIT.testQtfFetchCancelTearsDownAndCleansUp' -Dtests.seed=47CD2BA433B27B2A -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=zh-Hans -Dtests.timezone=America/North_Dakota/Center -Druntime.java=25
Expected behavior
Test should pass consistently.
Additional Details
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AnalyticsQueryTaskCleanupIT.testQtfFetchCancelTearsDownAndCleansUp and reproduce it using the provided Gradle command, seed, and runtime settings. Inspect the assertions around AnalyticsQueryTaskCleanupIT lines 580 and 611 and determine why the injected fetch_by_row_ids failure sometimes returns instead of failing the QTF query. Done means the test passes consistently and still verifies teardown and cleanup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100