liuxuzxx commented on issue #3369: URL: https://github.com/apache/rocketmq/issues/3369#issuecomment-937082953
> @liuxuzxx 这个问题直接修改协议容易引起不兼容问题,可通过编写json解析代码规避,参考 https://github.com/apache/rocketmq-client-go/blob/master/internal/route.go#L533 好吧,暂时只能这么搞了!我实验下,多谢!具体到你说兼容问题,我觉得可以通过remotingcommand的version属性来判断决定,是否启用新的规范的json序列化!就是定义一个即将发布的版本号作为分界线,如果一个请求过来的version大于等于这个分界线版本号。那就返回key都携带双引号的json,否则,那就沿用现在的代码生成json! -- 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]
