You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/09 02:03:43 UTC

[GitHub] [dubbo] JavaLionLi opened a new issue, #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

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

   <!-- 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.1.2
   * Operating System version: xxx
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
   ![image](https://user-images.githubusercontent.com/31852897/200718840-2016b254-a363-4ef7-ba49-760d5e94bd83.png)
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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] chickenlj commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311160945

   这个
   
   > > 可以提供个 demo 吗,我这边测试是可以的
   > 
   > 就是启动两个生产者 就报端口冲突了 用的都是22222端口
   
   这个是一个提示信息,不影响进程正常工作。如果在同一台机器上启动两个进程,并且想正常使用 qos 的话,第二个进程需要指定不同的端口。
   
   如果对qos没什么需要,可以先忽略。


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311484037

   > > 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
   > 
   > 不同版本间是个通用行为,还不清楚为何各个版本间有表现不一致的情况
   
   ![image](https://user-images.githubusercontent.com/31852897/201316021-34bc6edb-9c1e-4238-b1c4-ce6c68aa998b.png)
   


-- 
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] AlbumenJ commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1312398475

   ![image](https://user-images.githubusercontent.com/9292748/201462897-bab21e94-3a5d-468c-8061-c015bc054a8e.png)
   
   默认开启 qos 的逻辑已经存在好久了


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1312934835

   > ![image](https://user-images.githubusercontent.com/9292748/201462897-bab21e94-3a5d-468c-8061-c015bc054a8e.png)
   > 
   > 默认开启 qos 的逻辑已经存在好久了
   
   我不清楚你们的源码 但是现象如此 3.1.1 什么都没有配置 启动无异常 3.1.2启动报端口冲突
   我只是反馈一下现象 如果设计如此 那这个帖子可以关闭了 我手动设置成false就行了


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311161583

   > 这个
   > 
   > > > 可以提供个 demo 吗,我这边测试是可以的
   > > 
   > > 
   > > 就是启动两个生产者 就报端口冲突了 用的都是22222端口
   > 
   > 这个是一个提示信息,不影响进程正常工作。如果在同一台机器上启动两个进程,并且想正常使用 qos 的话,第二个进程需要指定不同的端口。
   > 
   > 如果对qos没什么需要,可以先忽略。
   
   启动两个不一样的生产者 这不是很常见的嘛


-- 
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] chickenlj commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311176325

   >  3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
   
   不同版本间是个通用行为,还不清楚为何各个版本间有表现不一致的情况


-- 
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] pandaapo commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
pandaapo commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308190638

   这个报错是正常的,因为您明确指定了两个qos的port都是22222。
   
   您之前没有出现该错误,很大可能的原因是当时的服务没有依赖dubbo-qos(包括间接依赖),服务启动过程中就自动忽略,即不启动qos,所以没有报错。
   
   我已在3.1.1版本上用dubbo-demo-xml-provider模块加入dubbo-qos依赖后做了验证,同样会报端口占用的错。


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308198138

   补充参数
   `dubbo:
     application:
       logger: slf4j
       metadataType: remote
       register-mode: instance
       service-discovery:
         migration: FORCE_APPLICATION
     protocol:
       name: dubbo
       port: -1
     registry:
       address: nacos://${spring.cloud.nacos.server-addr}
       group: DUBBO_GROUP
     consumer:
       timeout: 3000
       check: false`


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308212527

   > 所以最好还是能提供重现的demo,这样就可以减少沟通中的信息误差
   > 
   > > 我没有明确指定 我说的意思是 启动之后自动的两个端口都是22222
   > 
   > 也不会因为无意忽略掉的细微差别导致不能重现。
   
   https://gitee.com/JavaLionLi/RuoYi-Cloud-Plus 这个项目的dev分支 dubbo版本改成 3.1.2 就会报错
   ![image](https://user-images.githubusercontent.com/31852897/200742465-0571672c-0788-4f44-aba6-79729e869dcf.png)
   


-- 
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] pandaapo commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
pandaapo commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308201507

   所以最好还是能提供重现的demo,这样就不会有沟通中的信息误差
   > 我没有明确指定 我说的意思是 启动之后自动的两个端口都是22222
   
   也不会因为无意忽略掉的细微差别导致不能重现。


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311481258

   > > 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
   > 
   > 不同版本间是个通用行为,还不清楚为何各个版本间有表现不一致的情况
   
   我看了一下 3.1.1 默认就是false 3.1.2 默认是true


-- 
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] CrazyHZM closed issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
URL: https://github.com/apache/dubbo/issues/10898


-- 
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] AlbumenJ commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308103167

   可以提供个 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-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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308113663

   > > 可以提供个 demo 吗,我这边测试是可以的
   > 
   > 就是启动两个生产者 就报端口冲突了 用的都是22222端口
   
   两个生产者都是 -1 动态端口 设置qos=false就不报错了


-- 
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] chickenlj commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311167795

   要么就是:
   1. 程序自动探测端口。社区认为没有必要做
   2. 提醒日志轻量化,只打印一条简单的提示,比如无堆栈。这个如有必要可以考虑,堆栈放到debug/info级别


-- 
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] chickenlj commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311167288

   很常见。但如上所述,这个提示不影响功能,qos功能要想正常使用需要指定额外端口,否则可以忽略


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1311490225

   > > 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题
   > 
   > 不同版本间是个通用行为,还不清楚为何各个版本间有表现不一致的情况
   
   3.1.1没有声明qos 调用的url上显示为false 
   3.1.2则在启动时报错


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308113232

   > 可以提供个 demo 吗,我这边测试是可以的
   
   就是启动两个生产者 就报端口冲突了 用的都是22222端口


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308197157

   > 这个报错是正常的,因为您明确指定了两个qos的port都是22222。
   > 
   > 您之前没有出现该错误,很大可能的原因是当时的服务没有依赖dubbo-qos(包括间接依赖),服务启动过程中就自动忽略,即不启动qos,所以没有报错。
   > 
   > 我已在3.1.1版本上用dubbo-demo-xml-provider模块加入dubbo-qos依赖后做了验证,同样会报端口占用的错。
   
   我不清楚有没有dubbo-qos依赖 我只添加了 dubbo-spring-boot-starter 3.1.1启动时没有这种问题的 只有3.1.2才会有


-- 
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] JavaLionLi commented on issue #10898: qos 端口冲突 3.1.2发现此问题 3.1.1 3.1.0 未发现此问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10898:
URL: https://github.com/apache/dubbo/issues/10898#issuecomment-1308196542

   > 这个报错是正常的,因为您明确指定了两个qos的port都是22222。
   > 
   > 您之前没有出现该错误,很大可能的原因是当时的服务没有依赖dubbo-qos(包括间接依赖),服务启动过程中就自动忽略,即不启动qos,所以没有报错。
   > 
   > 我已在3.1.1版本上用dubbo-demo-xml-provider模块加入dubbo-qos依赖后做了验证,同样会报端口占用的错。
   
   我没有明确指定 我说的意思是 启动之后自动的两个端口都是22222


-- 
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