Skip to content

feat(registry): report notification queue and refresh timings - #16632

Open
chickenlj wants to merge 1 commit into
apache:3.3from
chickenlj:feat/registry-notification-timing
Open

chickenlj wants to merge 1 commit into
apache:3.3from
chickenlj:feat/registry-notification-timing

Conversation

@chickenlj

Copy link
Copy Markdown
Contributor

What is the purpose of the change?

Registry notifier debug logs record the time a push spent queued, its scheduled delay, the refresh duration and whether the refresh succeeded. They also mark superseded pushes without logging provider payloads.

Use an immutable pending notification to associate the timings with the right payload. A sequence identifies pushes even if they arrive in the same millisecond. An older in-flight refresh leaves a newer pending push intact.

GitHub issue

No issue is linked to this change.

Verification

  • RegistryNotifierTest, ServiceDiscoveryRegistryTest, RegistryProtocolTest and ServiceInstancesChangedListenerTest passed on JDK 21 (27 tests).
  • GitHub Actions.
@codecov-commenter

codecov-commenter commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.77778% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.32%. Comparing base (d1d1bde) to head (0ae8078).

Files with missing lines Patch % Lines
...va/org/apache/dubbo/registry/RegistryNotifier.java 57.77% 13 Missing and 6 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.3   #16632      +/-   ##
============================================
- Coverage     62.46%   62.32%   -0.14%     
+ Complexity    11797    10271    -1526     
============================================
  Files          2019     2019              
  Lines         95252    95294      +42     
  Branches      14612    14706      +94     
============================================
- Hits          59495    59392     -103     
- Misses        29573    29701     +128     
- Partials       6184     6201      +17     
Flag Coverage Δ
integration-tests-java21 ?
integration-tests-java8 ?
samples-tests-java21 30.23% <57.77%> (+0.05%) ⬆️
samples-tests-java8 27.93% <55.55%> (-0.09%) ⬇️
unit-tests-java11 61.17% <57.77%> (?)
unit-tests-java17 60.64% <57.77%> (+0.01%) ⬆️
unit-tests-java21 60.64% <57.77%> (+<0.01%) ⬆️
unit-tests-java25 60.60% <57.77%> (+<0.01%) ⬆️
unit-tests-java8 61.19% <57.77%> (?)

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

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

🚀 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants