Gong Dewei

Results 31 comments of Gong Dewei

跟踪一下初始化过程,发现问题在于serviceClassPostProcessor的初始化导致意外提前初始化ReferenceBean,接着初始化ConfigCenterBean,导致application.properties配置的dubbo.config-center没有起效。 初始化DubboAutoConfiguration.serviceClassPostProcessor() -> 查找参数bean: Set packagesToScan -> getBeanNamesForType(String) -> ReferenceBean (FactoryBean, allowEagerInit) -> isTypeMatch -> getTypeForFactoryBean -> createBean (ReferenceBean) -> ReferenceBean.prepareDubboConfigBeans -> beansOfTypeIncludingAncestors(ConfigCenterBean) -> init ConfigCenterBean -> serviceClassPostProcessor 为BeanFactoryPostProcessor,此时CommonAnnotationBeanPostProcessor 未加载,没有调用@PostContruct...

https://github.com/apache/dubbo-samples/pull/343

> AbstractBeanFactory > > ``` > ResolvableType getTypeForFactoryBeanFromAttributes(AttributeAccessor attributes) { > //注册Reference beanDefination时,是否可以设置目标类型 > Object attribute = attributes.getAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE); > if (attribute instanceof ResolvableType) { > return (ResolvableType) attribute; > }...

And this dubbo-samples-nacos-registry case: https://github.com/apache/dubbo-samples/pull/249/checks?check_run_id=1679339567 or here: [7_Run tests.txt](https://github.com/apache/dubbo-samples/files/5794292/7_Run.tests.txt)

We need to consider the compatibility of Zookeeper Client and Server. Check about https://github.com/apache/zookeeper/pull/1509 From eolivelli: > I don't know exactly, the network stack changed between 3.4 and 3.5 and...

建议把sample的工程目录及artifactId都重命名为`dubbo-samples-grpc-rxjava`,表示为grpc相关的sample

dubbo-samples-edas 测试没通过 ``` testGreeting(org.apache.dubbo.samples.edas.EDASIT) Time elapsed: 0.033 s

还是没有全部跑通,本地验证是否通过? 测试组合: dubbo2/dubbo3 + java8/11

> Can you try to disable validation? Create your validators as: > > ``` > new AgentBuilder.Default(new ByteBuddy().with(Validation.DISABLED))) > ``` ``` Transform Error: interceptorClassName: methodInterceptorClass$sayHello$1, typeName: com.demo.BizFoo, classLoader: jdk.internal.loader.ClassLoaders$AppClassLoader@2437c6dc, module:...

> Other than that, ideally you use `Advice` only and not delegation what avoids helper types which lead to these problems. I want to bridge to origin `ConstructorInter` via `Advice`,...