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 and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

3.3

Steps to reproduce this issue

sometime NacosNamingServiceUtilsTest might fail with

2025-07-19T15:37:29.6103010Z [ERROR] Failures: 
2025-07-19T15:37:29.6104188Z [ERROR]   NacosNamingServiceUtilsTest.testRequest:165 Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.
2025-07-19T15:37:29.6105395Z [ERROR]   NacosNamingServiceUtilsTest.testRetryCreate:103 Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.

detail message:

2025-07-19T15:37:21.2038310Z [ERROR] org.apache.dubbo.registry.nacos.util.NacosNamingServiceUtilsTest.testRequest -- Time elapsed: 0.012 s <<< FAILURE!
2025-07-19T15:37:21.2039767Z org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.
2025-07-19T15:37:21.2041169Z    at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
2025-07-19T15:37:21.2042195Z    at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
2025-07-19T15:37:21.2043065Z    at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
2025-07-19T15:37:21.2043925Z    at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
2025-07-19T15:37:21.2045166Z    at org.apache.dubbo.registry.nacos.util.NacosNamingServiceUtilsTest.testRequest(NacosNamingServiceUtilsTest.java:165)
2025-07-19T15:37:21.2046280Z    at java.lang.reflect.Method.invoke(Method.java:498)
2025-07-19T15:37:21.2046895Z    at java.util.ArrayList.forEach(ArrayList.java:1259)
2025-07-19T15:37:21.2047487Z    at java.util.ArrayList.forEach(ArrayList.java:1259)
2025-07-19T15:37:21.2048077Z 
2025-07-19T15:37:21.2048873Z [ERROR] org.apache.dubbo.registry.nacos.util.NacosNamingServiceUtilsTest.testRetryCreate -- Time elapsed: 0.003 s <<< FAILURE!
2025-07-19T15:37:21.2050464Z org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown.
2025-07-19T15:37:21.2051767Z    at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
2025-07-19T15:37:21.2052796Z    at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
2025-07-19T15:37:21.2053668Z    at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
2025-07-19T15:37:21.2054544Z    at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
2025-07-19T15:37:21.2055804Z    at org.apache.dubbo.registry.nacos.util.NacosNamingServiceUtilsTest.testRetryCreate(NacosNamingServiceUtilsTest.java:103)
2025-07-19T15:37:21.2056974Z    at java.lang.reflect.Method.invoke(Method.java:498)
2025-07-19T15:37:21.2057930Z    at java.util.ArrayList.forEach(ArrayList.java:1259)
2025-07-19T15:37:21.2058501Z    at java.util.ArrayList.forEach(ArrayList.java:1259)

What you expected to happen

Test successfully

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

Comment From: zrlw

it seemed that https://github.com/apache/dubbo/pull/15564 causes this problem.