szhengli opened a new issue, #10507:
URL: https://github.com/apache/dubbo/issues/10507

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.1.0-SNAPSHOT
   * Operating System version: centos7
   * Java version: 1.8.0_312
   
   ### Steps to reproduce this issue
   
   1. download  git clone  https://github.com/apache/dubbo-samples.git , and cd 
/data/dubbo-samples/dubbo-samples-kubernetes/
   2.  in dubbo-samples-apiserver-consumer,  change  to 
<image>harbor.cnzhonglunnet.com/zhonglun/dubbo-samples-apiserver-consumer</image>
    in pom.xml
   3.  in  dubbo-samples-apiserver-consumer, change  to 
<image>harbor.cnzhonglunnet.com/zhonglun/dubbo-samples-apiserver-provider</image>
    in pom.xml
   
   4.   also update the kubernetes API server in properties files in the 
provider & consumer project
   5.  then build and deploy to k8s
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   provider and consumer pod should be able to run normally.
   
   <!-- What actually happens? -->
   
   consumer fail to startup . it prompts that it failt o check the provider.
   
   ```
   Just put your stack trace here!
   
   
   SEVERE: [DUBBO] Dubbo Application[1.1](dubbo-samples-apiserver-consumer) 
found failed module: Dubbo Module[1.1.1], dubbo version: 3.1.0-SNAPSHOT, 
current host: 10.42.1.110
   --
   java.lang.IllegalStateException: Failed to check the status of the service 
org.apache.dubbo.samples.api.GreetingService. No provider available for the 
service org.apache.dubbo.samples.api.GreetingService:1.0.0 from the url 
consumer://10.42.1.110/org.apache.dubbo.samples.api.GreetingService?application=dubbo-samples-apiserver-consumer&background=false&dubbo=2.0.2&interface=org.apache.dubbo.samples.api.GreetingService&metadata-service-port=20885&methods=sayHello&pid=1&provided-by=dubbo-samples-apiserver-provider&qos.accept.foreign.ip=true&qos.enable=true&register.ip=10.42.1.110&release=3.1.0-SNAPSHOT&revision=1.0.0&side=consumer&sticky=false&timeout=3000&timestamp=1661488063797&version=1.0.0
 to the consumer 10.42.1.110 use dubbo version 3.1.0-SNAPSHOT
   at 
org.apache.dubbo.config.ReferenceConfig.checkInvokerAvailable(ReferenceConfig.java:652)
   at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:304)
   at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:227)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroyReference(SimpleReferenceCache.java:262)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:215)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:239)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:388)
   at 
java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:363)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:154)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
   at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
   at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
   at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
   at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
   at 
org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
   at org.apache.dubbo.samples.ConsumerBootstrap.main(ConsumerBootstrap.java:33)
    
   Exception in thread "main" java.lang.IllegalStateException: Failed to check 
the status of the service org.apache.dubbo.samples.api.GreetingService. No 
provider available for the service 
org.apache.dubbo.samples.api.GreetingService:1.0.0 from the url 
consumer://10.42.1.110/org.apache.dubbo.samples.api.GreetingService?application=dubbo-samples-apiserver-consumer&background=false&dubbo=2.0.2&interface=org.apache.dubbo.samples.api.GreetingService&metadata-service-port=20885&methods=sayHello&pid=1&provided-by=dubbo-samples-apiserver-provider&qos.accept.foreign.ip=true&qos.enable=true&register.ip=10.42.1.110&release=3.1.0-SNAPSHOT&revision=1.0.0&side=consumer&sticky=false&timeout=3000&timestamp=1661488063797&version=1.0.0
 to the consumer 10.42.1.110 use dubbo version 3.1.0-SNAPSHOT
   at 
org.apache.dubbo.config.ReferenceConfig.checkInvokerAvailable(ReferenceConfig.java:652)
   at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:304)
   at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:227)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroyReference(SimpleReferenceCache.java:262)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:215)
   at 
org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:239)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:388)
   at 
java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:363)
   at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:154)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
   at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
   at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
   at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
   at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
   at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
   at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
   at 
org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
   at org.apache.dubbo.samples.ConsumerBootstrap.main(ConsumerBootstrap.java:33)
   
   
   ```
   


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