AlbumenJ commented on issue #11170: URL: https://github.com/apache/dubbo/issues/11170#issuecomment-1365859882
> @EarthChen > > ```java > > consumer端: > > //创建dubbo泛化异步引用 > public static synchronized ReferenceConfig<GenericService> createReference(TopicInfoImmutable topicInfoImmutable) { > ReferenceConfig<GenericService> reference = new ReferenceConfig<>(); > reference.setInterface(topicInfoImmutable.getInterfaceName()); > reference.setGroup(topicInfoImmutable.getGroup()); > reference.setVersion(topicInfoImmutable.getVersion()); > reference.setRetries(1); > > reference.setGeneric(CommonConstants.GENERIC_SERIALIZATION_GSON); > reference.setAsync(true); > reference.setCheck(false); > reference.setFilter("-sentinel.dubbo.consumer.filter"); > //timeout改为在调用时设置 > //reference.setTimeout((int) topicInfoImmutable.getConsumeTimeoutMills()); > return reference; > } > > //执行泛化异步调用 > genericService = createReference(topicInfoImmutable); > CompletableFuture completableFuture = RpcContext.getContext().asyncCall( > () -> genericService.$invoke(info.getMethodName(), info.getArgsType(), args) > ); > final Object invoke = completableFuture.get(); > > > //provider端 > > 常规方式,使用@DubboService暴露一个接口 > @DubboService > public class MyServiceImpl implements MyService{ > Result doXX(); > } > ``` > > 然后C,P端就开始刷那个获取元数据失败的报错了。 这个我这边没法复现出来,可以提供一个demo嘛 -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org