Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo3.0子调用mock结果为null,取不到录制数据 #490

Open
2 tasks done
JCACJY opened this issue May 28, 2024 · 0 comments · May be fixed by #491
Open
2 tasks done

dubbo3.0子调用mock结果为null,取不到录制数据 #490

JCACJY opened this issue May 28, 2024 · 0 comments · May be fixed by #491
Assignees
Labels
bug 🐞 Something isn't working

Comments

@JCACJY
Copy link

JCACJY commented May 28, 2024

Search before asking

  • I have searched the existing issues before asking.

AREX Test Service

AREX Java Agent (arextest/arex-agent-java)

Current Behavior

dubbo3.0子调用mock结果为null,取不到录制数据

Expected Behavior

预期: 录制/回放获取的dubbo服务签名相同,回放时能正常取到mock数据;

Steps To Reproduce

问题: dubbo3.0子调用接口,录制时取到的dubbo服务名未带版本号,放回时取到的dubbo服务名带了版本号,录制/回放前后mock服务签名不匹配,最终导致回放时mock结果为null;

Anything else

扩展: 看源码似乎dubbo2.0和dubbo3.0对同服务多版本的支持都存在问题,原则上获取服务签名时应优先使用【接口路径:版本号】的格式作为服务签名,如果getAttachment("path")为空,再降级从invocation中获取!

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!
@JCACJY JCACJY added the bug 🐞 Something isn't working label May 28, 2024
@JCACJY JCACJY changed the title [Bug] dubbo3.0子调用mock结果为null,取不到录制数据 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
2 participants