You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "szhengli (via GitHub)" <gi...@apache.org> on 2023/03/28 10:12:57 UTC

[GitHub] [dubbo] szhengli opened a new issue, #11951: [resubmit] fail to gracefully shutdown java dubbo app

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

   dubbo version: 3.0.9 
   error:  2023-03-28 17:47:33.403 ERROR 4212 --- [o-8082-exec-303] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : 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 sayHello in the service org.example.api.DemoService. Tried 1 times of the providers [192.168.2.205:20880] (1/1) from the registry mse-4aac8ab0-zk.mse.aliyuncs.com:2181 on the consumer 192.168.2.206 using the dubbo version 3.0.9. Last error is: Failed to invoke remote method: sayHello, provider: dubbo://192.168.2.205:20880/org.example.api.DemoService anyhost=true&application=provider&background=false&category=providers,configurators,routers&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.example.api.DemoService&methods=sayHello&pid=4212&qos.enable=false&release=3.0.9&retries=0&service-name-mapping=true&side=provider&sticky=false&timeout=30000000
 , cause: org.apache.dubbo.remoting.RemotingException: Fail to decode request due to: java.io.IOException: Service org.example.api.DemoService with version 0.0.0 not found, invocation rejected.
   
   dubbo.properties:
     dubbo.service.shutdown.wait=600000
     server.shutdown: graceful
   
   background:
   
     to shutdown jar app gracefully , initially ,run  curl localhost:22222/offline && sleep 3   , and  kill PID, meanwhile, the new requests arrive continuously,  then the above errors happen, which cause some requests fail.
   
   any way to aovid the error? thanks log
   . 
   
   
   
   
    
   


-- 
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] szhengli commented on issue #11951: [resubmit] fail to gracefully shutdown java dubbo app

Posted by "szhengli (via GitHub)" <gi...@apache.org>.
szhengli commented on issue #11951:
URL: https://github.com/apache/dubbo/issues/11951#issuecomment-1488196816

   thank you, and I still have 3 qeustions. 
   1.  after app completes localhost:22222/offline, will input requests NOT be accepted anymore? 
   2.  why need to wait 60s,  wait more to time to complete offline?     
   3. is  it possible for the above errors to happend during offline?


-- 
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] AlbumenJ commented on issue #11951: [resubmit] fail to gracefully shutdown java dubbo app

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11951:
URL: https://github.com/apache/dubbo/issues/11951#issuecomment-1488160109

   > curl localhost:22222/offline && sleep 3
   
   change 3 to 60
   
   >  "the long push period "
   
   Provider unregister from registry, registry notify consumer


-- 
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] szhengli commented on issue #11951: [resubmit] fail to gracefully shutdown java dubbo app

Posted by "szhengli (via GitHub)" <gi...@apache.org>.
szhengli commented on issue #11951:
URL: https://github.com/apache/dubbo/issues/11951#issuecomment-1488226020

   
   if keep sending request to  the app,  if run (curl localhost:22222/offline && sleep 60  
   kill   $(ps  -aux | awk  '/jav[a]/ {print $2} ' )),   the above errors DO happen. i run a provider and a consumer on seperate VMs.  I use jmeter to generate http request.
   
   
   I also  I highly suspect even the app completes offline comand, it may still able to receive the input request, though the errors happen.
   any help?
   
   
   ![image](https://user-images.githubusercontent.com/16127498/228484782-be9e22e4-8741-44ea-9923-800385b6effe.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] AlbumenJ commented on issue #11951: [resubmit] fail to gracefully shutdown java dubbo app

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11951:
URL: https://github.com/apache/dubbo/issues/11951#issuecomment-1487844513

   This is caused by the long push period of the registration center, and the waiting time can be extended


-- 
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] szhengli commented on issue #11951: [resubmit] fail to gracefully shutdown java dubbo app

Posted by "szhengli (via GitHub)" <gi...@apache.org>.
szhengli commented on issue #11951:
URL: https://github.com/apache/dubbo/issues/11951#issuecomment-1488120921

   doe "the waiting time" refers to dubbo.service.shutdown.wait?  if that's case, it had been set to 600000, that is 10min, does the parameter need to extended larger?      what does "the long push period " really  mean, can you be more specific on this ?  thank you very much.


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