Fix flaky test RemoteIndexPrimaryRelocationIT#11614
Fix flaky test RemoteIndexPrimaryRelocationIT#11614sachinpkale wants to merge 4 commits intoopensearch-project:mainfrom
Conversation
|
❌ Gradle check result for 833c1b6: 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? |
Compatibility status:Checks if related components are compatible with change 9362e4f Incompatible componentsIncompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/performance-analyzer-rca.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/k-nn.git] |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11614 +/- ##
============================================
- Coverage 71.44% 71.38% -0.07%
+ Complexity 59397 59362 -35
============================================
Files 4923 4923
Lines 279178 279181 +3
Branches 40581 40582 +1
============================================
- Hits 199470 199283 -187
- Misses 63064 63315 +251
+ Partials 16644 16583 -61 ☔ View full report in Codecov by Sentry. |
|
❕ Gradle check result for dfd8f7a: 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. |
| + "] does not match checkpoint from primary context [" | ||
| + primaryContext | ||
| + "]"; | ||
| if (isRemoteStoreEnabled()) { |
There was a problem hiding this comment.
Lets add in some tests cases to confirm this behavior
There was a problem hiding this comment.
There already a test exists: org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing but it is flaky without this change
There was a problem hiding this comment.
From the annotation below this codepath isn't hit, is the coverage tool incorrect?
There was a problem hiding this comment.
The problem is: coverage tool does not consider code covered by integ tests
OpenSearch/gradle/code-coverage.gradle
Lines 37 to 44 in 4323af1
There was a problem hiding this comment.
Let me add unit test around this change.
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
|
This PR is stalled because it has been open for 30 days with no activity. |
Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Sachin Kale <kalsac@amazon.com>
dfd8f7a to
9362e4f
Compare
|
❌ Gradle check result for 9362e4f: 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? |
|
❌ Gradle check result for 9362e4f: 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? |
|
❌ Gradle check result for 9362e4f: 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? |
|
❌ Gradle check result for 9362e4f: 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? |
|
This PR is stalled because it has been open for 30 days with no activity. |
|
The test is fixed as part of #12494. Closing this PR. |
Description
Related Issues
Check List
New functionality includes testing.All tests passNew functionality has been documented.New functionality has javadoc addedFailing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)Commit changes are listed out in CHANGELOG.md file (See: Changelog)Public documentation issue/PR createdBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.