Skip to content

Fix sample guidance to conform to business usage requirements (#13859) - #16425

Open
Rajkaran-122 wants to merge 3 commits into
apache:3.3from
Rajkaran-122:fix/sample-guidance-business-usage-13859
Open

Fix sample guidance to conform to business usage requirements (#13859)#16425
Rajkaran-122 wants to merge 3 commits into
apache:3.3from
Rajkaran-122:fix/sample-guidance-business-usage-13859

Conversation

@Rajkaran-122

Copy link
Copy Markdown
  • Add documentation to EmbeddedZooKeeper.java explaining how to install and use regular ZooKeeper for production/business usage
  • Add documentation to sample bootstrap files (ZookeeperDubboSpringProviderBootstrap, ZookeeperDubboSpringConsumerBootstrap, ZookeeperDubboSpringConsumerXmlBootstrap) explaining they should be converted to normal Spring Boot applications for business usage
  • Provide step-by-step guidance for proper application structure and deployment

This addresses issue #13859 which requested:

  1. EmbeddedZookeeper: Change to a regular zookeeper download, install startup commands
  2. Change samples to normal applications instead of directly loading XML within the Main function

What is the purpose of the change?

Checklist

  • Make sure there is a GitHub_issue field for the change.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

…#13859)

- Add documentation to EmbeddedZooKeeper.java explaining how to install and use regular ZooKeeper for production/business usage
- Add documentation to sample bootstrap files (ZookeeperDubboSpringProviderBootstrap, ZookeeperDubboSpringConsumerBootstrap, ZookeeperDubboSpringConsumerXmlBootstrap) explaining they should be converted to normal Spring Boot applications for business usage
- Provide step-by-step guidance for proper application structure and deployment

This addresses issue apache#13859 which requested:
1. EmbeddedZookeeper: Change to a regular zookeeper download, install startup commands
2. Change samples to normal applications instead of directly loading XML within the Main function
@codecov-commenter

codecov-commenter commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 27.77778% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.91%. Comparing base (3a30432) to head (cf90860).

Files with missing lines Patch % Lines
...etadata/report/support/AbstractMetadataReport.java 27.77% 11 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.3   #16425      +/-   ##
============================================
+ Coverage     60.87%   60.91%   +0.03%     
- Complexity    11766    11770       +4     
============================================
  Files          1953     1953              
  Lines         89273    89291      +18     
  Branches      13473    13476       +3     
============================================
+ Hits          54346    54392      +46     
+ Misses        29333    29327       -6     
+ Partials       5594     5572      -22     
Flag Coverage Δ
integration-tests-java21 32.13% <16.66%> (-0.01%) ⬇️
integration-tests-java8 32.21% <16.66%> (+<0.01%) ⬆️
samples-tests-java21 32.20% <16.66%> (+<0.01%) ⬆️
samples-tests-java8 29.86% <16.66%> (+0.06%) ⬆️
unit-tests-java11 59.14% <27.77%> (+0.02%) ⬆️
unit-tests-java17 58.64% <27.77%> (+<0.01%) ⬆️
unit-tests-java21 58.62% <27.77%> (+0.01%) ⬆️
unit-tests-java25 58.58% <27.77%> (+0.01%) ⬆️
unit-tests-java8 59.16% <27.77%> (+0.01%) ⬆️

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.

- Add System.clearProperty for dubbo.metrics.protocol in @BeforeAll and @afterall
- Applied to SpringBootConfigPropsTest, SpringBootMultipleConfigPropsTest, and SpringBootConfigMetricsTest
- Root cause: Other tests set protocol=disabled as system property which persists
- This fixes CI failures where getProtocol() returned disabled instead of prometheus
@Rajkaran-122

Rajkaran-122 commented Aug 15, 2026

Copy link
Copy Markdown
Author

@codecov-commenter The test-isolation fix has been included in this PR to prevent dubbo.metrics.protocol from leaking between tests. The updated CI run should now verify the fix across the supported JDK versions.

…tion

- Add awaitTermination to reportCacheExecutor, reportTimerScheduler, and retryExecutor shutdown
- Ensures all running tasks complete before allowing destruction to proceed
- Prevents IllegalStateException when retry tasks access destroyed ExtensionDirector
- Root cause: shutdown() does not wait for tasks to complete, allowing race with framework destruction
- Fixes AbstractMetadataReportTest.testPublishAll flaky failure on CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants