Anshul-creator opened a new issue, #15842:
URL: https://github.com/apache/dubbo/issues/15842

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo 3.3.7
   JDK 17/21
   
   ### Steps to reproduce this issue
   
   Several tests across `dubbo-config/dubbo-config-spring` exhibit flaky 
behavior when execution order or JVM internal iteration order changes. These 
flakes were consistently reproduced using:
   
   ```bash 
   ./mvnw -q -pl dubbo-config/dubbo-config-spring\
     edu.illinois:nondex-maven-plugin:2.2.1:nondex \
     -DnondexRuns=20
   ```
   
   ### What you expected to happen
   
   The reason for the flakiness are below:
   
   **Micrometer metrics subsystem initialization**
   - `CompositeMeterRegistry` uses mutable global structures
   - `IdentityHashMap` iteration order varies
   - Metrics are initialized implicitly during `DubboBootstrap.start()`
   
   **DubboBootstrap global state not reset across tests**
   - ApplicationModel / FrameworkModel carry over state
   - Reference cache survives between tests
   - System properties affect bootstrap behavior if not cleared
   
   ### Anything else
   
   I have opened several PR's for solving the issue. The PR structure follows 
the PR's I had opened for https://github.com/apache/dubbo/issues/15795 which 
have all been accepted. The PR's opened for this issue are as follows:
   
   - https://github.com/apache/dubbo/pull/15819
   - https://github.com/apache/dubbo/pull/15828
   - https://github.com/apache/dubbo/pull/15833
   - https://github.com/apache/dubbo/pull/15834
   - https://github.com/apache/dubbo/pull/15835
   - https://github.com/apache/dubbo/pull/15840
   - https://github.com/apache/dubbo/pull/15841 
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to