Skip to content

add query group stats constructs#15343

Merged
jainankitk merged 9 commits into
opensearch-project:mainfrom
kaushalmahi12:feature/sandbox-stats_constructs
Aug 28, 2024
Merged

add query group stats constructs#15343
jainankitk merged 9 commits into
opensearch-project:mainfrom
kaushalmahi12:feature/sandbox-stats_constructs

Conversation

@kaushalmahi12
Copy link
Copy Markdown
Contributor

@kaushalmahi12 kaushalmahi12 commented Aug 21, 2024

Author: Kaushal Kumar

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.

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
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 <ravi.kaushal97@gmail.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
@kaushalmahi12 kaushalmahi12 force-pushed the feature/sandbox-stats_constructs branch from 31f5405 to 7fada74 Compare August 22, 2024 22:37
@jainankitk
Copy link
Copy Markdown
Contributor

Also, gradle precommit is failing for this PR

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
@kaushalmahi12 kaushalmahi12 requested a review from jed326 as a code owner August 28, 2024 01:20
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 1df409f: SUCCESS

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 4f6ee7a: SUCCESS

@codecov
Copy link
Copy Markdown

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
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 <ravi.kaushal97@gmail.com>

* add changelog entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add total cancellations

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
(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 <ravi.kaushal97@gmail.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>
reta added a commit that referenced this pull request Aug 28, 2024
reta added a commit that referenced this pull request Aug 28, 2024
This reverts commit c63ad5a.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
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 <ravi.kaushal97@gmail.com>

* add changelog entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add total cancellations

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
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 <ravi.kaushal97@gmail.com>

* add changelog entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add total cancellations

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
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 <ravi.kaushal97@gmail.com>

* add changelog entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add total cancellations

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
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 <ravi.kaushal97@gmail.com>

* add changelog entry

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add packageinfo for stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add total cancellations

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add more granular level rejections

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* add toXContent test cases

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* move ResourceType enum to wlm

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

* update the comment for query group stats

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>

---------

Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
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