You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "dengWuuu (via GitHub)" <gi...@apache.org> on 2023/03/08 06:09:21 UTC

[GitHub] [dubbo] dengWuuu opened a new issue, #11766: @DubboReference 中似乎 client是失效的

dengWuuu opened a new issue, #11766:
URL: https://github.com/apache/dubbo/issues/11766

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   * Dubbo version: 3.2.0-beta.6-SNAPSHOT
   * Operating System version: macOs
   * Java version: 8
   
   ### Steps to reproduce this issue
   
   1. 在@DubboReference client指定一个自己实现spi拓展的NettyTransporter并未生效
   2.在spring以xml配置client是可以成功的
   
   Pls. provide [GitHub address] to reproduce this issue.
   一个error example 你可以运行provider1和provider2 然后运行 consumer中test中的VersionServiceStarIT文件,发现若是使用注解@DubboReference中的client指定自己实现的使用的client是失效的
   https://github.com/dengWuuu/dubbo-error
   


-- 
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-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] MieAh commented on issue #11766: @DubboReference 中似乎 client是失效的

Posted by "MieAh (via GitHub)" <gi...@apache.org>.
MieAh commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1459716202

   是可以直接获取扩展,而且我发现的是配置的client和loadbalance都是在proxy都进行依赖注入后,才被设置进入配置中,在getTransporter的时候client判断为null,只能获取到默认的NettyTransporter


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] FinalT commented on issue #11766: dubbo 中 yaml xml 注解 配置失效的地方

Posted by "FinalT (via GitHub)" <gi...@apache.org>.
FinalT commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1459836753

   dubbo版本3.1.8-SNAPSHOT也是失效的


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo 中 yaml xml 注解 配置失效的地方 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11766: dubbo 中 yaml xml 注解 配置失效的地方 
URL: https://github.com/apache/dubbo/issues/11766


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] dengWuuu commented on issue #11766: @DubboReference 中似乎 client是失效的

Posted by "dengWuuu (via GitHub)" <gi...@apache.org>.
dengWuuu commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1459598841

   并且我希望大家发现注解中如果有些配置也没能生效的话,同样发在这个issue 然后放上错误example github地址


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] dengWuuu commented on issue #11766: @DubboReference 中似乎 client是失效的

Posted by "dengWuuu (via GitHub)" <gi...@apache.org>.
dengWuuu commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1459742577

   > 是可以直接获取扩展,而且我发现的是配置的client和loadbalance都是在proxy都进行依赖注入后,才被设置进入配置中,在getTransporter的时候client判断为null,只能获取到默认的NettyTransporter
   
   所以这是个bug对吧


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] namelessssssssssss commented on issue #11766: dubbo 中 yaml xml 注解 配置失效的地方

Posted by "namelessssssssssss (via GitHub)" <gi...@apache.org>.
namelessssssssssss commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1472093040

   似乎在使用注解时,main包下的@DubboReference会覆盖test包下的@DubboReference的配置属性
   
   
   可以通过测试:
   
   ```java
   //main包下
   @Component
   public class Task implements CommandLineRunner {
   
       @DubboReference(version = "*", loadbalance = "roundrobin", client = "myNetty")
       private VersionService versionService;
       //...
   ```
   
   ```java
   //test包下
   @RunWith(SpringRunner.class)
   @SpringBootTest
   public class VersionServiceStarIT {
   
       @DubboReference
       private VersionService service;
   ```
   
   MyNettyTransporter.getConnectedCount() == 2 
   
   
   
   不能通过测试:
   
   ```java
   //main包下
   @Component
   public class Task implements CommandLineRunner {
   
       @DubboReference(version = "*")
       private VersionService versionService;
       //...
   ```
   
   ```java
   //test包下
   @RunWith(SpringRunner.class)
   @SpringBootTest
   public class VersionServiceStarIT {
   
       @DubboReference(version = "*", loadbalance = "roundrobin", client = "myNetty")
       private VersionService service;
       //...
   ```
   
   MyNettyTransporter.getConnectedCount() == 0 
   
   我不清楚这是否算是bug。
   
   
   
   
   


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] dengWuuu commented on issue #11766: dubbo 中 yaml xml 注解 配置失效的地方

Posted by "dengWuuu (via GitHub)" <gi...@apache.org>.
dengWuuu commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1474651196

   > 似乎在使用注解时,main包下的@DubboReference会覆盖test包下的@DubboReference的配置属性
   > 
   > 可以通过测试:
   > 
   > ```java
   > //main包下
   > @Component
   > public class Task implements CommandLineRunner {
   > 
   >     @DubboReference(version = "*", loadbalance = "roundrobin", client = "myNetty")
   >     private VersionService versionService;
   >     //...
   > ```
   > 
   > ```java
   > //test包下
   > @RunWith(SpringRunner.class)
   > @SpringBootTest
   > public class VersionServiceStarIT {
   > 
   >     @DubboReference
   >     private VersionService service;
   > ```
   > 
   > MyNettyTransporter.getConnectedCount() == 2
   > 
   > 不能通过测试:
   > 
   > ```java
   > //main包下
   > @Component
   > public class Task implements CommandLineRunner {
   > 
   >     @DubboReference(version = "*")
   >     private VersionService versionService;
   >     //...
   > ```
   > 
   > ```java
   > //test包下
   > @RunWith(SpringRunner.class)
   > @SpringBootTest
   > public class VersionServiceStarIT {
   > 
   >     @DubboReference(version = "*", loadbalance = "roundrobin", client = "myNetty")
   >     private VersionService service;
   >     //...
   > ```
   > 
   > MyNettyTransporter.getConnectedCount() == 0
   > 
   > 我不清楚这是否算是bug。
   
   那看起来似乎并不是一个bug


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo 中 yaml xml 注解 配置失效的地方 [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM commented on issue #11766:
URL: https://github.com/apache/dubbo/issues/11766#issuecomment-1882650615

   @dengWuuu 
   Try it on the latest version.


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org