Skip to content

Fix flakiness of testRemoteCleanupDeleteStale, bug fix in RemoteMetadataManifest and RemoteReadResult#14230

Merged
shwetathareja merged 3 commits intoopensearch-project:mainfrom
shiv0408:fix_14205
Jun 14, 2024
Merged

Fix flakiness of testRemoteCleanupDeleteStale, bug fix in RemoteMetadataManifest and RemoteReadResult#14230
shwetathareja merged 3 commits intoopensearch-project:mainfrom
shiv0408:fix_14205

Conversation

@shiv0408
Copy link
Copy Markdown
Member

@shiv0408 shiv0408 commented Jun 12, 2024

Description

We see that Cleanup interval setting set before the might not be applied before the interval for assert is over.
Added a check to ensure that setting is updated before checking if files are deleted.

Further, addressing some bugs found after merging #14089

Ran the test 1000 times to ensure that flakiness is not there now.

Related Issues

Resolves #14205
Resolves #13968

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for a8bf4b0: 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?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for f5831ac: 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?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 376eb8c: 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?

@prudhvigodithi
Copy link
Copy Markdown
Member

From this AUTOCUT issue #14315 (comment) I can see the testEndToEndRemoteMigration has failed on some other PR's and post merge actions.

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for af9c6be: 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?

@shiv0408
Copy link
Copy Markdown
Member Author

@shwetathareja shwetathareja added backport 2.x Backport to 2.x branch backport 2.15 labels Jun 14, 2024
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for af9c6be: 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?

@shwetathareja
Copy link
Copy Markdown
Member

❌ Gradle check result for af9c6be: 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?

org.opensearch.cluster.MinimumClusterManagerNodesIT.testThreeNodesNoClusterManagerBlock
org.opensearch.index.IndexServiceTests.testAsyncTranslogTrimTaskOnClosedIndex

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for af9c6be: 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?

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for af9c6be: SUCCESS

@shwetathareja shwetathareja merged commit 0c2ff03 into opensearch-project:main Jun 14, 2024
@shiv0408 shiv0408 deleted the fix_14205 branch June 14, 2024 14:04
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 14, 2024
…ataManifest and RemoteReadResult (#14230)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
(cherry picked from commit 0c2ff03)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 14, 2024
…ataManifest and RemoteReadResult (#14230)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
(cherry picked from commit 0c2ff03)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gbbafna pushed a commit that referenced this pull request Jun 14, 2024
…ataManifest and RemoteReadResult (#14230) (#14354)


(cherry picked from commit 0c2ff03)

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
shwetathareja pushed a commit that referenced this pull request Jun 15, 2024
…ataManifest and RemoteReadResult (#14230) (#14353)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest


(cherry picked from commit 0c2ff03)

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Jul 12, 2024
…ataManifest and RemoteReadResult (opensearch-project#14230)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ataManifest and RemoteReadResult (opensearch-project#14230) (opensearch-project#14353)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest

(cherry picked from commit 0c2ff03)

Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <kkewwei@163.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
…ataManifest and RemoteReadResult (opensearch-project#14230)

* Address flakiness of testRemoteCleanupDeleteStale
- Make RemoteReadResult have Object rather than ToXContent
- Fix getManifestCodecVersion in RemoteClusterMetadataManifest

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

Labels

autocut backport 2.x Backport to 2.x branch backport 2.15 bug Something isn't working ClusterManager:RemoteState flaky-test Random test failure that succeeds on second run >test-failure Test failure from CI, local build, etc.

Projects

Status: ✅ Done

6 participants