Skip to content

Conversation

@Technoboy-
Copy link
Contributor

@Technoboy- Technoboy- commented Jun 13, 2025

Motivation

It's a follow up fix for #24365. we need to call recordStats to gather statistics and filter non-zero statistics. And also fix the wrong cache name.

caffeine_cache_eviction_weight{cluster="test",cache="-[map type; class org.apache.pulsar.common.policies.data.BookiesRackConfiguration, [simple type, class java.lang.String] -> [map type; class java.util.Map, [simple type, class java.lang.String] -> [simple type, class org.apache.pulsar.common.policies.data.BookieInfo]]]"} 0.0

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 13, 2025
Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

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

@Technoboy- Is it possible to add a test for verifying the final metrics labels value?

@Technoboy- Technoboy- changed the title [Fix][broker] Fix to gather non-zero statistics [Fix][broker] Fix the wrong cache name Jun 13, 2025
@Technoboy- Technoboy- changed the title [Fix][broker] Fix the wrong cache name [fix][broker] Fix the wrong cache name Jun 13, 2025
@Technoboy- Technoboy- added this to the 4.1.0 milestone Jun 13, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.30%. Comparing base (bbc6224) to head (2ac857a).
Report is 1142 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24407      +/-   ##
============================================
+ Coverage     73.57%   74.30%   +0.72%     
+ Complexity    32624    32341     -283     
============================================
  Files          1877     1868       -9     
  Lines        139502   145364    +5862     
  Branches      15299    16629    +1330     
============================================
+ Hits         102638   108006    +5368     
+ Misses        28908    28820      -88     
- Partials       7956     8538     +582     
Flag Coverage Δ
inttests 26.73% <53.84%> (+2.14%) ⬆️
systests 23.40% <61.53%> (-0.93%) ⬇️
unittests 73.78% <100.00%> (+0.93%) ⬆️

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

Files with missing lines Coverage Δ
...e/pulsar/broker/authentication/oidc/JwksCache.java 67.67% <100.00%> (+1.01%) ⬆️
...thentication/oidc/OpenIDProviderMetadataCache.java 79.26% <100.00%> (+0.78%) ⬆️
...ker/authentication/AuthenticationProviderSasl.java 59.42% <100.00%> (-0.58%) ⬇️
...ache/pulsar/broker/ManagedLedgerClientFactory.java 82.65% <100.00%> (-1.50%) ⬇️
.../service/SystemTopicBasedTopicPoliciesService.java 75.62% <100.00%> (+1.43%) ⬆️
...rg/apache/pulsar/broker/web/PulsarWebResource.java 65.21% <100.00%> (+1.17%) ⬆️
...pache/pulsar/functions/instance/ProducerCache.java 82.25% <100.00%> (ø)
.../pulsar/metadata/cache/impl/MetadataCacheImpl.java 87.83% <100.00%> (-1.42%) ⬇️
...he/pulsar/metadata/impl/AbstractMetadataStore.java 85.26% <100.00%> (+0.70%) ⬆️

... and 1078 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dao-jun dao-jun merged commit 91e0bf2 into apache:master Jun 13, 2025
105 of 110 checks passed
lhotari pushed a commit that referenced this pull request Jun 19, 2025
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 20, 2025
(cherry picked from commit 91e0bf2)
(cherry picked from commit a5fe503)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 30, 2025
(cherry picked from commit 91e0bf2)
(cherry picked from commit a5fe503)
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
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.

6 participants