Skip to content

Replaced CPU load average logic with AverageTracker classes. Default thresholds modified #18666

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Harsh-87
Copy link
Contributor

@Harsh-87 Harsh-87 commented Jul 2, 2025

Replaced CPU load average logic with AverageTracker classes.
Default thresholds modified
Relevant JUnits added / modified

Description

[Describe what this change achieves]

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

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.

Harsh Kothari and others added 3 commits July 2, 2025 14:19
Copy link
Contributor

github-actions bot commented Jul 2, 2025

❌ Gradle check result for 3c4e687: 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 and others added 3 commits July 2, 2025 20:19
… for Regexp queries introduced in OpenSearch 3.0 (opensearch-project#18640)

* FIx ~ bug

Signed-off-by: Prudhvi Godithi <[email protected]>

* Update changelog

Signed-off-by: Prudhvi Godithi <[email protected]>

---------

Signed-off-by: Prudhvi Godithi <[email protected]>
* Fix bug in replication lag computation.

This change fixes a bug with replication lag computation to correctly use epoch reference point with Instant.now() and DateUtils.
This change also fixes pruning logic to correctly remove the latest synced to checkpoint from tracking.  Previously we would only
prune up to the latest.  This ensures that when a new checkpoint is eventually received we aren't incorrectly computing lag from the synced-to checkpoint.

Signed-off-by: Marc Handalian <[email protected]>

* add changelog entry

Signed-off-by: Marc Handalian <[email protected]>

* Fix flaky test to hardcode time lag between checkpoint arrival.

Signed-off-by: Marc Handalian <[email protected]>

---------

Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Copy link
Contributor

github-actions bot commented Jul 2, 2025

✅ Gradle check result for 7638df4: SUCCESS

Copy link

codecov bot commented Jul 2, 2025

Codecov Report

Attention: Patch coverage is 93.67089% with 5 lines in your changes missing coverage. Please review.

Project coverage is 72.74%. Comparing base (223f9fd) to head (f72a516).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...ch/index/autoforcemerge/AutoForceMergeManager.java 92.85% 3 Missing and 1 partial ⚠️
.../index/autoforcemerge/ResourceTrackerProvider.java 95.45% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18666      +/-   ##
============================================
+ Coverage     72.72%   72.74%   +0.02%     
- Complexity    68409    68440      +31     
============================================
  Files          5566     5569       +3     
  Lines        314292   314369      +77     
  Branches      45579    45588       +9     
============================================
+ Hits         228554   228682     +128     
+ Misses        67153    67130      -23     
+ Partials      18585    18557      -28     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Harsh-87 Harsh-87 requested a review from chaitanya588 July 3, 2025 06:26
@Harsh-87 Harsh-87 requested a review from ajaymovva July 3, 2025 08:32
Copy link
Contributor

github-actions bot commented Jul 3, 2025

✅ Gradle check result for 34ba425: SUCCESS

Copy link
Contributor

github-actions bot commented Jul 4, 2025

❌ Gradle check result for 972b1bd: 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

github-actions bot commented Jul 4, 2025

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

github-actions bot commented Jul 5, 2025

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

Signed-off-by: Harsh Kothari <[email protected]>
Copy link
Contributor

github-actions bot commented Jul 5, 2025

✅ Gradle check result for f72a516: SUCCESS

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.

6 participants