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

[Backport 2.x] Adding support for dynamically updating Leader/follower checker timeouts #11166

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 0452d14 from #10528.

…uts (#10528)

* making leader check timeout dynamic

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* making follower check timeout dynamic

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* fixing existing unit tests

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* fixing checkstyle violations

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* adding tests for leader/follower check timeout

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* setting maximum and minimum timeout value for leader/follower checker

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* adding tests for checking boundary cases

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Fixing checkstyle violations

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* changed the log file and added other suggested changes

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* fixing checkstyle violations

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Addressing review comments

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* addressing proposed changes

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Applying checkstyle fixes

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Fixing flakiness for existing tests

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Applying checkstyle fixes

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

* Fixing the timeout value limits for randomSettings

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>

---------

Signed-off-by: Niyati Aggarwal <niyatiagg4641@gmail.com>
(cherry picked from commit 0452d14)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 17cab0e

Incompatible components

Incompatible components: [https://github.com/opensearch-project/performance-analyzer.git]

Skipped components

Compatible components

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

Copy link
Contributor

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

Copy link
Contributor

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

@owaiskazi19
Copy link
Member

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

#10154

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

❕ Gradle check result for 17cab0e: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testMultiGetWithNetworkDisruption_FailOpenEnabled
      1 org.opensearch.indices.replication.RemoteStoreReplicationSourceTests.testGetSegmentFilesAlreadyExists

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (827099e) 70.88% compared to head (17cab0e) 70.89%.
Report is 2 commits behind head on 2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##                2.x   #11166    +/-   ##
==========================================
  Coverage     70.88%   70.89%            
+ Complexity    58926    58909    -17     
==========================================
  Files          4862     4862            
  Lines        278389   278397     +8     
  Branches      40806    40806            
==========================================
+ Hits         197336   197360    +24     
+ Misses        64289    64143   -146     
- Partials      16764    16894   +130     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@owaiskazi19 owaiskazi19 merged commit 879b9af into 2.x Nov 14, 2023
66 checks passed
@github-actions github-actions bot deleted the backport/backport-10528-to-2.x branch November 14, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant