Closed roytan883 closed 6 years ago
Is there has status stopping
? I think the logic should be:
1, start stop
2, broadcast stopping to other nodes(stopping)
3, handle remain requests( meanwhile other nodes not send any new request to this node)
4, handle all request finished or timeout
5, broadcast stopped to other nodes(stopped)
6, stop end
Yes the stopping logic doesn't work very properly, but I've fixed it, so it will be better in v0.13. Same for remote calls, 0.13 will do a graceful shutdown with remote calls too.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
gracefulStop
should wait requests to be handled before stopCurrent Behavior
broker stop directly
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
config broker with:
create demo service with async action:
another process remote call
demo.helloAsync
every secondcheck demo service log:
Context
comments
The weird part is that remote call not actived graceful stop (which stop immediately), but if call from demo service itself, graceful stop works as expect.
here is log , which call itself before stop , make graceful stop works:
begin stop()
andstopped
has 5s waiting