You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/29 09:24:30 UTC

[GitHub] [dubbo-go] kep-w opened a new issue, #1946: consumer requests a offline provider without reporting an error

kep-w opened a new issue, #1946:
URL: https://github.com/apache/dubbo-go/issues/1946

   **What happened**: 
   dubbo-go v3.0.1 (both consumer and provider).
   Used nacos as registration Center. 
   When the provider is upgraded, the new provider is online, and the old provider is offline, but the consumer will still request the old service without reporting an error. If configure retries=2, it is useless, because there is no error in the first request, and the request is considered to be successful.
   
   **What you expected to happen**: we hope the consumer can request new provider or reporting an error at least.
   
   **How to reproduce it (as minimally and precisely as possible)**: can offline the provider sees whether an error is reported after the consumer request.
   
   **Anything else we need to know?**: 
   golang version 1.15
   cluster=failover 
   retries=0 or retries=2 both no use.
   <img width="458" alt="image" src="https://user-images.githubusercontent.com/23651144/176399165-9859d2ce-361e-45b4-b844-8ff50cab1c14.png">
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1186315813

   @kep-w hey, guy, could u pls tell us how to reproduce this bug? Or can u tell me ur dingding name?


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] zhaoyunxing92 closed issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
zhaoyunxing92 closed issue #1946: consumer requests a offline provider without reporting an error
URL: https://github.com/apache/dubbo-go/issues/1946


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] kep-w commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
kep-w commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1190017439

   > @kep-w hey, guy, could u pls tell us how to reproduce this bug? Or can u tell me ur dingding name?
   
   hi, thanks for following and replying.
   u can try the following process to reproduce:
   1. one consumer and one provider start normally, and nacos has online info, consumer can request and get reply from provider
   2. just offline the provider from nacos. at this time, consumer will still request the offlined provider. But now nacos has no available provider, consumer should not request provider that have been offline. --> this is the first question
   3. stop the provider, means now no provider available in nacos and the offline  provider is not running. But now, consumer still request the provider that are offline and not running, and got no error. --> this is the second question
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1172353614

   @sanxun0325 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] sanxun0325 commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
sanxun0325 commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1180091468

   @kep-w problem cannot be reproduced,could you provide more information, such as the metadata information of service registration in NACOS
   such as:
   <img width="504" alt="image" src="https://user-images.githubusercontent.com/28588342/178217767-b0c6cfa5-fbd3-4905-89e8-b9485eea6d78.png">
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1190108683

   > > @kep-w hey, guy, could u pls tell us how to reproduce this bug? Or can u tell me ur dingding name?
   > 
   > hi, thanks for following and replying. u can try the following process to reproduce:
   > 
   > 1. one consumer and one provider start normally, and nacos has online info, consumer can request and get reply from provider
   > 2. just offline the provider from nacos. at this time, consumer will still request the offlined provider. But now nacos has no available provider, consumer should not request provider that have been offline. --> this is the first question
   > 3. stop the provider, means now no provider available in nacos and the offline  provider is not running. But now, consumer still request the provider that are offline and not running, and got no error. --> this is the second question
   
   ok. thanks again for your bug report.
   
   Our community apache committer @sanxun0325 will follow your steps to repproduce this bug. 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] sanxun0325 commented on issue #1946: consumer requests a offline provider without reporting an error

Posted by GitBox <gi...@apache.org>.
sanxun0325 commented on issue #1946:
URL: https://github.com/apache/dubbo-go/issues/1946#issuecomment-1192088016

   The results I reproduced showed that there were obvious errors,
   <img width="1325" alt="image" src="https://user-images.githubusercontent.com/28588342/180341364-e444bab5-42e4-4ef0-94be-692ab85399d8.png">
   <img width="1327" alt="image" src="https://user-images.githubusercontent.com/28588342/180341382-778003a6-ed99-4f53-b890-d3b3a8caa100.png">
   <img width="1337" alt="image" src="https://user-images.githubusercontent.com/28588342/180341395-0f5b4232-59dd-4c7c-9570-b18a8c775b75.png">
   
   I started a provider, a consumer,keep making requests from the consumer, and then closing the provider at any time, and I get errors。
   
   **consumer:**
   ```golang	
   for {
   		user, err := userProvider.GetUser(context.TODO(), &User{Name: "Alex001"})
   		if err != nil {
   			logger.Errorf("error: %v\n", err)
   			os.Exit(1)
   			return
   		}
   		logger.Infof("response result: %v\n", user)
   	}```
   
   code example:https://github.com/apache/dubbo-go-samples/tree/master/registry/nacos
   
   You can tell me what's wrong with my operation or provide a demo project.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org