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

dubbo回放器中的泛化调用应该使用本地调用或者直连的方式 #190

Open
shenba299 opened this issue Dec 14, 2022 · 3 comments

Comments

@shenba299
Copy link

如果回放环境是集群的话,则无法保证回放时调用的是本机的服务,从而导致回放出错,固回放器要改成通过本地调用或者直连的方式来保证回放的是当前机器的服务。

@Aresxue
Copy link

Aresxue commented Jan 6, 2023

reference.setScope(SCOPE_LOCAL);
加上这一行指定本地调用

@shenba299
Copy link
Author

shenba299 commented Jan 6, 2023 via email

@Aresxue
Copy link

Aresxue commented Feb 6, 2023

泛化调用本身有一些缺陷,二开的话可以把这部分替换成injvm
`
Map<String, Exporter<?>> exporterMap = InjvmProtocol.getInjvmProtocol().getExporterMap();

Exporter<?> exporter = exporterMap.get(serviceKey);

Result appResponse = exporter.getInvoker().invoke(rpcInvocation);
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants