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

Metric for upsert tables count #12505

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

shounakmk219
Copy link
Collaborator

This PR adds a metric to get the count of tables which have upsert enabled.

if (tableConfig == null) {
LOGGER.warn("Found null table config for table: {}. Resetting table config metrics.", tableNameWithType);
_controllerMetrics.setValueOfTableGauge(tableNameWithType, ControllerGauge.REPLICATION_FROM_CONFIG, 0);
return;
}
if (tableConfig.isUpsertEnabled()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we also move _offlineTableCount and _realTimeTableCount metric update here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 61.72%. Comparing base (59551e4) to head (2f63a62).
Report is 21 commits behind head on master.

Files Patch % Lines
...e/pinot/controller/helix/SegmentStatusChecker.java 71.42% 1 Missing and 1 partial ⚠️
...g/apache/pinot/common/metrics/ControllerGauge.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12505      +/-   ##
============================================
- Coverage     61.75%   61.72%   -0.03%     
  Complexity      207      207              
============================================
  Files          2436     2449      +13     
  Lines        133233   133507     +274     
  Branches      20636    20687      +51     
============================================
+ Hits          82274    82409     +135     
- Misses        44911    45015     +104     
- Partials       6048     6083      +35     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 61.64% <62.50%> (-0.07%) ⬇️
java-21 61.60% <62.50%> (-0.02%) ⬇️
skip-bytebuffers-false 61.69% <62.50%> (-0.06%) ⬇️
skip-bytebuffers-true 61.57% <62.50%> (+33.84%) ⬆️
temurin 61.72% <62.50%> (-0.03%) ⬇️
unittests 61.72% <62.50%> (-0.03%) ⬇️
unittests1 46.85% <0.00%> (-0.04%) ⬇️
unittests2 27.71% <62.50%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@saurabhd336 saurabhd336 merged commit bc07b8d into apache:master Feb 28, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants