-
Notifications
You must be signed in to change notification settings - Fork 67
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
Fixed the bug in CacheConfigMetricsCollector #657
Fixed the bug in CacheConfigMetricsCollector #657
Conversation
Signed-off-by: Atharva Sharma <[email protected]>
Test failures will be addressed in the following PR: #651 |
@@ -118,10 +122,15 @@ public void collectMetrics(long startTime) { | |||
SHARD_REQUEST_CACHE.toString(), | |||
requestCacheMaxSize); | |||
} catch (Exception e) { | |||
return new CacheMaxSizeStatus( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide more insight as to why do we need to modify this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current logic returns a CacheMaxSizeStatus with null cacheMaxSize if exception is raised, while we require it to be non-null.
@atharvasharma61 thanks for raising this. Could you please add the following details here?
|
Hi Gagan. Thanks for responding.
|
How come it got released then? |
Looks like it is a miss. UT has been failing for quite some time. PR from 3 months ago: https://github.com/opensearch-project/performance-analyzer/actions/runs/8379459182/job/22946424856 |
Signed-off-by: Gagan Juneja <[email protected]>
* Fixed the bug in CacheConfigMetricsCollector Signed-off-by: Atharva Sharma <[email protected]> * Fixes error logging Signed-off-by: Gagan Juneja <[email protected]> --------- Signed-off-by: Atharva Sharma <[email protected]> Signed-off-by: Gagan Juneja <[email protected]> Co-authored-by: Gagan Juneja <[email protected]> (cherry picked from commit 489f318)
* Fixed the bug in CacheConfigMetricsCollector Signed-off-by: Atharva Sharma <[email protected]> * Fixes error logging Signed-off-by: Gagan Juneja <[email protected]> --------- Signed-off-by: Atharva Sharma <[email protected]> Signed-off-by: Gagan Juneja <[email protected]> Co-authored-by: Gagan Juneja <[email protected]> (cherry picked from commit 489f318) Co-authored-by: Atharva Sharma <[email protected]>
Is your feature request related to a problem? Please provide an existing Issue # , or describe.
Resolves #644
Metrics are being emitted as expected:
Describe the solution you are proposing
Tiered Caching has introduced a new ICache interface which has an OnHeap implementation which actually stores the Cache field now. We had to update the logic to how to get the cache field. Relevant PR: opensearch-project/OpenSearch#10753
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Check List
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.