AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
886 stars 184 forks source link

micro client不能快速自然退出 #10

Closed AlexStocks closed 5 years ago

AlexStocks commented 5 years ago

micro client 关闭时候退出log如下:

[2018/08/18 13:55:51 CST] [DEBG] (filter.go:github.com/AlexStocks/goext/database/filter/pool.(Filter).watch:210) watch.Notify() = result{nil}, error{&errors.unformatter{message:"watcher stopped", cause:error(nil), previous:error(nil), file:"github.com/AlexStocks/goext/database/registry/zookeeper/watcher.go", line:345}} [2018/08/18 13:55:51 CST] [DEBG] (filter.go:github.com/AlexStocks/goext/database/filter/pool.(Filter).run:176) services.watch(w) = err{"github.com/AlexStocks/goext/database/registry/zookeeper/watcher.go:345: watcher stopped"} [2018/08/18 13:55:51 CST] [WARN] (filter.go:github.com/AlexStocks/goext/database/filter/pool.(Filter).run:178) Filter.watch() = error{github.com/AlexStocks/goext/database/registry/zookeeper/watcher.go:345: watcher stopped} [2018/08/18 13:55:54 CST] [WARN] (filter.go:github.com/AlexStocks/goext/database/filter/pool.(Filter).run:155) (Filter)run() isClosed now [2018/08/18 13:55:54 CST] [EROR] (main.go:main.initSignal.func1:96) app exit now by force...

AlexStocks commented 5 years ago

经测试,把fastFailTimeout改为30s后,client可以自然退出