jockercheng91 opened a new issue, #15405: URL: https://github.com/apache/dubbo/issues/15405
### 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.0 OpenJDK:1.8 OS: CentOS7 ### Steps to reproduce this issue in dubbo3-sample/3-extensions/registry/dubbo-samples-kubernetes use k8s registry dubbo.registry.address=kubernetes://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT:6443}?subscribed-services=* ### What you expected to happen 16:31:58.997 |-INFO [main] he.dubbo.qos.protocol.QosProtocolWrapper:109 -| [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.3.0, current host: 100.110.19.43 16:31:59.084 |-WARN [main] y.client.migration.MigrationRuleListener: -| [DUBBO] Using default configuration rule because config center is not configured!, dubbo version: 3.3.0, current host: 100.110.19.43, error code: 1-4. This may be caused by , go to https://dubbo.apache.org/faq/1/4 to find instructions. 16:31:59.090 |-WARN [main] g.apache.dubbo.common.config.Environment: -| [DUBBO] dynamicConfiguration is null , return globalConfiguration., dubbo version: 3.3.0, current host: 100.110.19.43, error code: 0-12. This may be caused by , go to https://dubbo.apache.org/faq/0/12 to find instructions. 16:31:59.091 |-WARN [main] g.apache.dubbo.common.config.Environment: -| [DUBBO] dynamicConfiguration is null , return globalConfiguration., dubbo version: 3.3.0, current host: 100.110.19.43, error code: 0-12. This may be caused by , go to https://dubbo.apache.org/faq/0/12 to find instructions. 16:31:59.205 |-INFO [main] o.registry.kubernetes.KubernetesRegistry:453 -| [DUBBO] Subscribe: consumer://100.110.19.43/com.iflytek.edu.dubbo3.samples.VersionService?application=dubbo3-consumer&background=false&category=providers,configurators,routers&check=false&dubbo=2.0.2&executor-management-mode=isolation&file-cache=true&interface=com.iflytek.edu.dubbo3.samples.VersionService&logger=slf4j&metadata-service-port=20885&methods=getTag,getVersion&pid=1&qos.accept.foreign.ip=true&qos.enable=false&release=3.3.0&retries=0&side=consumer&sticky=false&timeout=6000×tamp=1747729918975&unloadClusterRelated=false, dubbo version: 3.3.0, current host: 100.110.19.43 16:32:00.874 |-INFO [main] ient.metadata.MetadataServiceNameMapping:105 -| [DUBBO] Local cache mapping is empty, dubbo version: 3.3.0, current host: 100.110.19.43 16:32:00.879 |-INFO [main] ient.metadata.MetadataServiceNameMapping:113 -| [DUBBO] com.iflytek.edu.dubbo3.samples.VersionService mapping to * instructed by registry subscribed-services., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:00.880 |-INFO [main] registry.client.ServiceDiscoveryRegistry:341 -| [DUBBO] Trying to subscribe from apps * for service key com.iflytek.edu.dubbo3.samples.VersionService, , dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.096 |-INFO [main] ration.DefaultMigrationAddressComparator:56 -| [DUBBO] No instance address available, stop compare., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.097 |-INFO [main] ry.client.migration.MigrationRuleHandler:102 -| [DUBBO] Succeed Migrated to APPLICATION_FIRST mode. Service Name: com.iflytek.edu.dubbo3.samples.VersionService, dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.097 |-INFO [main] org.apache.dubbo.config.ReferenceConfig:505 -| [DUBBO] Referred dubbo service: [com.iflytek.edu.dubbo3.samples.VersionService]. it's not GenericService reference, dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.100 |-INFO [main] o.registry.client.metadata.MetadataUtils:79 -| [DUBBO] Remote Metadata Report Server is not provided or unavailable, will stop registering service definition to remote center!, dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.103 |-INFO [main] ubbo.config.deploy.DefaultModuleDeployer:372 -| [DUBBO] Dubbo Module[1.1.1] has started., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.103 |-INFO [main] fig.deploy.DefaultMetricsServiceExporter:117 -| [DUBBO] The MetricsConfig not exist, will not export metrics service., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.106 |-INFO [main] config.deploy.DefaultApplicationDeployer:1340 -| [DUBBO] Dubbo Application[1.1](dubbo3-consumer) is ready., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.106 |-INFO [main] ubbo.config.deploy.DefaultModuleDeployer:380 -| [DUBBO] Dubbo Module[1.1.1] has completed., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.106 |-INFO [main] config.deploy.DefaultApplicationDeployer:1360 -| [DUBBO] Dubbo Application[1.1](dubbo3-consumer) has completed., dubbo version: 3.3.0, current host: 100.110.19.43 16:32:01.111 |-INFO [main] ples.muti.register.MultiRegistryProvider:61 -| Started MultiRegistryProvider in 8.087 seconds (JVM running for 10.01) 16:32:01.121 |-INFO [main] rter.dubbo3.impl.Dubbo3ApplicationRunner:18 -| Dubbo3:InitializerDubbo3Properties(qos=InitializerDubbo3Properties.Qos(enable=true), logger=InitializerDubbo3Properties.Logger(enable=true), consumer=InitializerDubbo3Properties.Consumer(enable=true, timeout=6000, retries=0), provider=InitializerDubbo3Properties.Provider(enable=true)) multiRegistryProvider started 16:32:47.720 |-INFO [http-nio-8080-exec-1] e.ContainerBase.[Tomcat].[localhost].[/]:173 -| Initializing Spring DispatcherServlet 'dispatcherServlet' 16:32:47.720 |-INFO [http-nio-8080-exec-1] gframework.web.servlet.DispatcherServlet:525 -| Initializing Servlet 'dispatcherServlet' 16:32:47.722 |-INFO [http-nio-8080-exec-1] gframework.web.servlet.DispatcherServlet:547 -| Completed initialization in 2 ms ------------------------------------------tag:blue 16:32:47.787 |-WARN [http-nio-8080-exec-1] ache.dubbo.rpc.cluster.SingleRouterChain: -| [DUBBO] No provider available after route for the service com.iflytek.edu.dubbo3.samples.VersionService from registry 100.110.19.43 on the consumer 100.110.19.43 using the dubbo version 3.3.0. Router snapshot is below: [ Parent (Input: 0) (Current Node Output: 0) (Chain Node Output: 0) ] Input: Empty -> Chain Node Output: Empty [ MockInvokersSelector (Input: 0) (Current Node Output: 0) (Chain Node Output: 0) Router message: Empty invokers. Directly return. ] Current Node Output: Empty, dubbo version: 3.3.0, current host: 100.110.19.43, error code: 2-2. This may be caused by No provider available after route for the service, go to https://dubbo.apache.org/faq/2/2 to find instructions. 16:32:47.790 |-WARN [http-nio-8080-exec-1] .rpc.cluster.directory.AbstractDirectory: -| [DUBBO] No provider available after connectivity filter for the service com.iflytek.edu.dubbo3.samples.VersionService All routed invokers' size: 0 from registry RegistryDirectory(registry: 10.233.0.1:443)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) on the consumer 100.110.19.43 using the dubbo version 3.3.0., dubbo version: 3.3.0, current host: 100.110.19.43, error code: 2-2. This may be caused by provider server or registry center crashed, go to https://dubbo.apache.org/faq/2/2 to find instructions. 16:32:47.799 |-ERROR [http-nio-8080-exec-1] cat].[localhost].[/].[dispatcherServlet]:175 -| Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method getTag in the service com.iflytek.edu.dubbo3.samples.VersionService. No provider available for the service com.iflytek.edu.dubbo3.samples.VersionService from registry RegistryDirectory(registry: 10.233.0.1:443)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) on the consumer 100.110.19.43 using the dubbo version 3.3.0. Please check if the providers have been started and registered.] with root cause org.apache.dubbo.rpc.RpcException: Failed to invoke the method getTag in the service com.iflytek.edu.dubbo3.samples.VersionService. No provider available for the service com.iflytek.edu.dubbo3.samples.VersionService from registry RegistryDirectory(registry: 10.233.0.1:443)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) on the consumer 100.110.19.43 using the dubbo version 3.3.0. Please check if the providers have been started and registered. at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:397) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:358) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.router.RouterSnapshotFilter.invoke(RouterSnapshotFilter.java:46) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:109) ~[dubbo-metrics-default-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.support.MetricsClusterFilter.invoke(MetricsClusterFilter.java:57) ~[dubbo-metrics-default-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53) ~[dubbo-rpc-api-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] at org.apache.dubbo.spring.security.filter.ContextHolderParametersSelectedTransferFilter.invoke(ContextHolderParametersSelectedTransferFilter.java:40) ~[dubbo-3.3.0.jar!/:3.3.0] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349) ~[dubbo-cluster-3.3.0.jar!/:3.3.0] ### Anything else When using Kubernetes as the registration center, if the subscribed-services is not configured or the wildcard subscribed-services=* is used for configuration, automatic service discovery will fail. Consumers will encounter an error during invocation, with the message No provider ### 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 - [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]
