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

add query group stats constructs #15343

Conversation

kaushalmahi12
Copy link
Contributor

Description

This change introduces constructs to hold live view of query group level stats and point in time view of query group stats. Post these changes we will need changes to hook these constructs with various request events i,e; completions, failures, cancellations and rejections.

Related Issues

Resolves ##15120
RFC: #12342

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.

Copy link
Contributor

❌ Gradle check result for 9f34c30: 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 52330cf: 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 31f5405: null

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: Kaushal Kumar <[email protected]>
Signed-off-by: Kaushal Kumar <[email protected]>
@kaushalmahi12 kaushalmahi12 force-pushed the feature/sandbox-stats_constructs branch from 31f5405 to 7fada74 Compare August 22, 2024 22:37
Copy link
Contributor

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

@jainankitk
Copy link
Collaborator

Also, gradle precommit is failing for this PR

@kaushalmahi12 kaushalmahi12 requested a review from jed326 as a code owner August 28, 2024 01:20
Copy link
Contributor

✅ Gradle check result for 1df409f: SUCCESS

Copy link
Contributor

❌ Gradle check result for 353b1c8: 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 4f6ee7a: SUCCESS

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 89.18919% with 12 lines in your changes missing coverage. Please review.

Project coverage is 71.87%. Comparing base (c771bdd) to head (4f6ee7a).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...java/org/opensearch/wlm/stats/QueryGroupStats.java 87.20% 4 Missing and 7 partials ⚠️
...java/org/opensearch/wlm/stats/QueryGroupState.java 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15343      +/-   ##
============================================
- Coverage     71.95%   71.87%   -0.09%     
- Complexity    63286    63302      +16     
============================================
  Files          5225     5227       +2     
  Lines        296215   296323     +108     
  Branches      42788    42800      +12     
============================================
- Hits         213133   212971     -162     
- Misses        65559    65892     +333     
+ Partials      17523    17460      -63     

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

@jainankitk jainankitk merged commit c0bcacb into opensearch-project:main Aug 28, 2024
34 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 28, 2024
* add query group stats constructs

Signed-off-by: Kaushal Kumar <[email protected]>

* add changelog entry

Signed-off-by: Kaushal Kumar <[email protected]>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <[email protected]>

* add total cancellations

Signed-off-by: Kaushal Kumar <[email protected]>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <[email protected]>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <[email protected]>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <[email protected]>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <[email protected]>

---------

Signed-off-by: Kaushal Kumar <[email protected]>
(cherry picked from commit c0bcacb)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
jainankitk pushed a commit that referenced this pull request Aug 28, 2024
* add query group stats constructs



* add changelog entry



* add packageinfo for stats



* add total cancellations



* add more granular level rejections



* add toXContent test cases



* move ResourceType enum to wlm



* update the comment for query group stats



---------


(cherry picked from commit c0bcacb)

Signed-off-by: Kaushal Kumar <[email protected]>
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>
reta added a commit that referenced this pull request Aug 28, 2024
reta added a commit that referenced this pull request Aug 28, 2024
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
* add query group stats constructs

Signed-off-by: Kaushal Kumar <[email protected]>

* add changelog entry

Signed-off-by: Kaushal Kumar <[email protected]>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <[email protected]>

* add total cancellations

Signed-off-by: Kaushal Kumar <[email protected]>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <[email protected]>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <[email protected]>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <[email protected]>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <[email protected]>

---------

Signed-off-by: Kaushal Kumar <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
* add query group stats constructs

Signed-off-by: Kaushal Kumar <[email protected]>

* add changelog entry

Signed-off-by: Kaushal Kumar <[email protected]>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <[email protected]>

* add total cancellations

Signed-off-by: Kaushal Kumar <[email protected]>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <[email protected]>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <[email protected]>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <[email protected]>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <[email protected]>

---------

Signed-off-by: Kaushal Kumar <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
* add query group stats constructs

Signed-off-by: Kaushal Kumar <[email protected]>

* add changelog entry

Signed-off-by: Kaushal Kumar <[email protected]>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <[email protected]>

* add total cancellations

Signed-off-by: Kaushal Kumar <[email protected]>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <[email protected]>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <[email protected]>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <[email protected]>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <[email protected]>

---------

Signed-off-by: Kaushal Kumar <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
* add query group stats constructs

Signed-off-by: Kaushal Kumar <[email protected]>

* add changelog entry

Signed-off-by: Kaushal Kumar <[email protected]>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <[email protected]>

* add total cancellations

Signed-off-by: Kaushal Kumar <[email protected]>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <[email protected]>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <[email protected]>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <[email protected]>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <[email protected]>

---------

Signed-off-by: Kaushal Kumar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants