XiaoFeiASK opened a new issue, #1132: URL: https://github.com/apache/dubbo-go-samples/issues/1132
## 问题 `graceful_shutdown` sample 当前仍在使用旧的 `graceful_shutdown.Init(...)` 初始化方式。 当前 Dubbo-go 的 graceful shutdown 推荐通过 `dubbo.WithShutdown(...)` 进行配置。如果 sample 继续使用旧写法,容易让用户参考到不推荐的 API,也会和文档中的新 API 说明不一致。 ## 需要做的事情 - 将 `graceful_shutdown` sample 中的旧初始化方式替换为 `dubbo.WithShutdown(...)` - 使用 `dubbo.NewInstance(...)` 创建实例,并通过实例创建 Server - 补充常用 graceful shutdown 配置项,例如 `WithTimeout`、`WithStepTimeout`、`WithNotifyTimeout`、`WithConsumerUpdateWaitTime`、`WithOfflineRequestWindowTimeout` - 同步更新 README / README_CN,说明 sample 使用新的 `dubbo.WithShutdown(...)` 配置方式 - 确认集成测试仍能覆盖 Triple 长连接场景下的 graceful shutdown 行为 ## 参考 - apache/dubbo-website#3224 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
