-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-27885 expose metaCacheHits in MetricsConnection #5253
base: master
Are you sure you want to change the base?
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Hi @frostruan thanks for the PR. Is it possible for you to add a call to validate the exposed metric |
Ok. Will Address it ASAP. Thanks for the reviewing. |
Hi @NihalJain A test case has been added. Would you mind seeing if this is what you were expecting in your free time ? |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaCache.java
Outdated
Show resolved
Hide resolved
// for 0th iteration there will be 5 hits + 1 cache miss. | ||
assertEquals(initialMetaCacheHits + 6 * i + 5, metrics.getMetaCacheHits()); | ||
// We will get a cache miss only on the first request, so the value will always be 1. | ||
assertEquals(1, metrics.getMetaCacheMisses()); |
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.
Init getMetaCacheMisses
too before asserting similar to initialMetaCacheHits
? Thanks for the quick review addressal :)
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.
Would you mind taking a look on the newest commit and seeing if this is what you were expecting in your free time ? REALLY thanks for your patience ! :)
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Hi @frostruan thanks for addressing the comments. Just a query do you think this patch would be still useful since you have already raised a better solution at HBASE-27890/#5257? Also could you please see if the patch does not introduce a spotless issue? I see pre checks failing. |
Thank you for your attention to this PR. I will address this issue together in https://issues.apache.org/jira/browse/HBASE-27890. Thanks again for your help :) |
No description provided.