smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.11k stars 1.17k forks source link

应用退出后,注册中心etcd 不会自动注销,必须待租约到期 #764

Closed wzhsh90 closed 1 year ago

wzhsh90 commented 1 year ago

应用退出后,注册中心etcd 不会自动注销,必须待租约到期

这个要怎么处理?

smallnest commented 1 year ago

应用退出的时候调用server.UnregisterAll

wzhsh90 commented 1 year ago

不是调用ShutDown ?

------------------ 原始邮件 ------------------ 发件人: "smallnest/rpcx" @.>; 发送时间: 2022年11月15日(星期二) 中午11:34 @.>; 抄送: "@@.**@.>; 主题: Re: [smallnest/rpcx] 应用退出后,注册中心etcd 不会自动注销,必须待租约到期 (Issue #764)

应用退出的时候调用server.UnregisterAll

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

smallnest commented 1 year ago

不是

wzhsh90 commented 1 year ago

现在用UnregisterAll 报错了 2022/11/15 11:48:42 Upgrade start: hangup 2022/11/15 11:48:45 tcp server: listen tcp :19190: bind: address already in use 2022/11/15 11:48:45 Upgrade succeeded

用shutdown 不会出现 19190: bind: address already in use

------------------ 原始邮件 ------------------ 发件人: "smallnest/rpcx" @.>; 发送时间: 2022年11月15日(星期二) 中午11:42 @.>; 抄送: "@@.**@.>; 主题: Re: [smallnest/rpcx] 应用退出后,注册中心etcd 不会自动注销,必须待租约到期 (Issue #764)

不是

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>