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

Fix testClusterRelocationNoPreferenceShardMovementPrimaryFirstEnabled failure due to timeout #9420

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

Poojita-Raj
Copy link
Contributor

Description

Fixes the flaky timeout issue on testClusterRelocationNoPreferenceShardMovementPrimaryFirstEnabled so it passes every time as expected.

The issue was incorrect detection of the primary first shard movement strategy for throttling in the event that ShardMovementStrategy is set to NO_PREFERENCE and movePrimaryFirst deprecated setting is set to true.
Changed the logic of setting the shard movement strategy value.

Related Issues

Resolves #9178

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.

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
@Poojita-Raj
Copy link
Contributor Author

Ran each test 200 times to confirm there's no flakiness.

@opensearch-trigger-bot
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 914544b

Incompatible components

Incompatible components: [https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/asynchronous-search.git]

Skipped components

Compatible components

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

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testMultiGetWithNetworkDisruption_FailOpenEnabled
      1 org.opensearch.client.PitIT.testDeleteAllAndListAllPits

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #9420 (1cdc8c8) into main (6a5b464) will increase coverage by 0.05%.
Report is 2 commits behind head on main.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##               main    #9420      +/-   ##
============================================
+ Coverage     71.12%   71.17%   +0.05%     
- Complexity    57417    57470      +53     
============================================
  Files          4776     4776              
  Lines        270742   270738       -4     
  Branches      39578    39578              
============================================
+ Hits         192558   192691     +133     
+ Misses        62044    61804     -240     
- Partials      16140    16243     +103     
Files Changed Coverage Δ
.../allocation/allocator/BalancedShardsAllocator.java 91.74% <75.00%> (+0.12%) ⬆️
...ting/allocation/allocator/LocalShardsBalancer.java 85.52% <100.00%> (-0.01%) ⬇️

... and 448 files with indirect coverage changes

Copy link
Member

@mch2 mch2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Poojita-Raj can you link this to a docs issue?

@mch2 mch2 merged commit 61c5f17 into opensearch-project:main Aug 21, 2023
@mch2 mch2 added the backport 2.x Backport to 2.x branch label Aug 21, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 21, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
(cherry picked from commit 61c5f17)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
tlfeng pushed a commit that referenced this pull request Aug 22, 2023
(cherry picked from commit 61c5f17)

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Aug 25, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Gagan Juneja <gjjuneja@amazon.com>
kkmr pushed a commit to kkmr/OpenSearch that referenced this pull request Aug 28, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Kiran Reddy <kkreddy@amazon.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
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
Projects
None yet
3 participants