xxs588 commented on PR #3400:
URL: https://github.com/apache/dubbo-go/pull/3400#issuecomment-4680700327

   在 PR #3400 分支上使用 `dubbo-go-samples/task/shop` demo 验证,tag routing 仍然不可用。
   
     ### 测试环境
   
     - dubbo-go: PR #3400 分支 (fix/tag-metadata-propagation)
     - dubbo-go-samples: 最新 main
     - 注册中心: Zookeeper v3.9.4
     - 协议: Triple
   
     ### 测试配置
   
     v2 服务配置 `dubbo.WithTag("gray")`,v1 不配置 tag。
   
     ### 实际数据
   
     **Provider 导出 URL:**
     application.tag=gray  ✅
     (无 dubbo.tag 参数) 
   
     **Consumer 发现的 provider URL:**
     dubbo.tag=  ❌(空)
     
     ### 路由测试
   
     | 场景 | 预期 | 实际(5次) |
     |---|---|---|
     | `/login`(不带 gray tag) | 只命中 v1 | v1, v2, v2, v2, v1(随机) |
     | `/grayLogin`(带 `dubbo.tag=gray` + `force=true`) | 只命中 v2 | v2, v1, v1, 
v2, v1(随机) |
   
     ### 分析
   
     PR #3400 修复了:
     - ✅ `MetadataInfo.Tag` 缺少 json/hessian tag
     - ✅ `convertMetadataInfoV2` 未映射 Tag
     - ✅ `AddService()` fallback 读 `application.tag`
   
     但 `application.tag → dubbo.tag` 的传播链路在 **service-discovery-registry 的 URL 
重建阶段**仍然断裂。consumer 从 ZK 发现 provider 后重建 URL 时,`dubbo.tag` 没有被正确设置。
   
     Tag Router 匹配的是 `dubbo.tag`(不是 `application.tag`),所以即使 provider 有 
`application.tag=gray`,router 也看不到,v1 和 v2 对 router 来说完全一样。


-- 
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]

Reply via email to