AsperforMias commented on PR #1155: URL: https://github.com/apache/dubbo-go-samples/pull/1155#issuecomment-6383108464
这个ci红跟go升版至1.27有关,protocol/jsonrpc/json.go:218 的 type req *serverRequest会在此版本go下出现问题。go v1.27 把 encoding/json 换成了 v2 实现(https://go.dev/doc/go1.27)。然后用 v1.27 编译时,jsonrpc 服务端收到任何请求都会直接崩,而且 recover 承受不住。triple 和 dubbo 协议不受影响。 这个 `Build And Integration` 失败和这个pr无关,它挂在 `rpc/multi-protocols`,那时这个pr的样例还没开始run 主要的问题是`apache/skywalking-eyes/header@main` 开始安装 Go 1.27(apache/skywalking-eyes@7f98a36a),并且把它留在了 PATH 里,导致集成测试用的是 Go 1.27.3,而不是 go.mod 声明的版本,我们的go.mod和集测的版本左右互搏了。Go 1.27 的 `encoding/json` 改成了基于 v2 实现,dubbo-go 里 `protocol/jsonrpc/json.go` 的 `type req *serverRequest` 写法在这个版本下会无限递归,jsonrpc provider 直接栈溢出崩溃(见 golang/go#75361) 修复: - CI 侧:apache/dubbo-go-samples#1156(CI 已全绿) - dubbo-go 侧:apache/dubbo-go#3778(issue:apache/dubbo-go#3777) 等 #1156 合入后我会再次 rebase 该pr。 -- 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]
