Skip to content
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

[BUG] org.opensearch.client.RestClientSingleHostIntegTests.testRequestResetAndAbort is flaky #9206

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

reta
Copy link
Collaborator

@reta reta commented Aug 9, 2023

Description

The issue was caused by race between aborting the HTTP request and completing the resulting future. Added Phaser to predictably control the cancellation race.

Related Issues

Resolves #9034

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By 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.

…tResetAndAbort is flaky

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@opensearch-trigger-bot
Copy link
Contributor

Compatibility status:



> Task :checkCompatibility
Incompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer.git]
Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git]

BUILD SUCCESSFUL in 33m 58s

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Gradle Check (Jenkins) Run Completed with:

@Poojita-Raj
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

* **RESULT:** FAILURE ❌

* **URL:** https://build.ci.opensearch.org/job/gradle-check/22274/

* **CommitID:** [5716523](https://github.com/opensearch-project/OpenSearch/commit/571652330302a39363a094940575fd55b5d6a4e2)
  Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
  Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?

flaky: #9116

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Gradle Check (Jenkins) Run Completed with:

@kotwanikunal
Copy link
Member

#9181
@reta Can you please rebase? The above test was already muted.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testDropPrimaryDuringReplication

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #9206 (5716523) into main (e1eade1) will increase coverage by 0.11%.
Report is 11 commits behind head on main.
The diff coverage is 86.66%.

@@             Coverage Diff              @@
##               main    #9206      +/-   ##
============================================
+ Coverage     71.06%   71.18%   +0.11%     
- Complexity    57328    57413      +85     
============================================
  Files          4766     4768       +2     
  Lines        270512   270540      +28     
  Branches      39557    39559       +2     
============================================
+ Hits         192229   192572     +343     
+ Misses        62115    61782     -333     
- Partials      16168    16186      +18     
Files Changed Coverage Δ
...java/org/opensearch/index/engine/EngineConfig.java 96.05% <ø> (ø)
.../opensearch/telemetry/tracing/noop/NoopTracer.java 80.00% <50.00%> (-20.00%) ⬇️
...rg/opensearch/telemetry/tracing/WrappedTracer.java 83.33% <50.00%> (-16.67%) ⬇️
...rg/opensearch/telemetry/tracing/DefaultTracer.java 92.30% <85.71%> (-2.70%) ⬇️
.../org/opensearch/telemetry/tracing/SpanContext.java 100.00% <100.00%> (ø)
.../telemetry/tracing/runnable/TraceableRunnable.java 100.00% <100.00%> (ø)
.../java/org/opensearch/index/codec/CodecService.java 100.00% <100.00%> (ø)

... and 482 files with indirect coverage changes

@reta reta merged commit d014c4d into opensearch-project:main Aug 10, 2023
37 checks passed
@reta reta added the backport 2.x Backport to 2.x branch label Aug 10, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-9206-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d014c4d280108db78427f330c7ea1c677c22603e
# Push it to GitHub
git push --set-upstream origin backport/backport-9206-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-9206-to-2.x.

@reta reta removed the backport 2.x Backport to 2.x branch label Aug 10, 2023
neetikasinghal pushed a commit to neetikasinghal/OpenSearch that referenced this pull request Aug 10, 2023
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta
Copy link
Collaborator Author

reta commented Aug 10, 2023

UPD: No need to backport, 2.x still uses Apache HttpClient 4

linuxpi pushed a commit to linuxpi/OpenSearch that referenced this pull request Aug 14, 2023
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
linuxpi pushed a commit to linuxpi/OpenSearch that referenced this pull request Aug 16, 2023
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…tResetAndAbort is flaky (opensearch-project#9206)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] org.opensearch.client.RestClientSingleHostIntegTests.testRequestResetAndAbort is flaky
4 participants