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

[GitHub] [dubbo] sducxh opened a new issue, #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## My question
   搜索了以前的issue,存在过相同的问题,修复方式是在 `Version` 类中对 `release版本号` 做兼容,`2.6.3` 是个分界版本;在 `3.2.0` 的源码中, `protocol版本号` 在 [2.0.2, 2.0.99] 范围内,response类型就会赋值为 4 ,而在 `2.6.2` 之前的客户端只能处理 0、1、2的值,出现异常:Unknown result flag, expect '0' '1' '2', get 4。
   如果我要升级服务端,客户端也至少要升级到2.6.3的版本,才可以兼容,但公司内又有基于2.6.2的内部版本,存在升级困难。
   
   ## Describe the proposal
   <!-- Please use this for a concrete design proposal for functionality. -->
   <!-- If you just want to request a new feature and discuss the possible business value, create a Feature Request. -->
   在我的debug中(客户端2.6.2,server端3.2.0),server端对response encode时,version值是协议版本号 `2.0.2`
   有没有可能:在以后的实现中response的类型基于客户端的版本返回
   


-- 
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] AlbumenJ commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   现在 Server 应该会判断 Client 请求的版本号的,如果是低版本的 Client 则不会发送 3 和 4。


-- 
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 #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   > 都是2.0.2: ![企业微信截图_16824077774152](https://user-images.githubusercontent.com/5143333/234205758-ebda3fba-cce0-4c6f-8ebb-d2c199fd4862.png)
   > 
   > ![企业微信截图_16824010829593](https://user-images.githubusercontent.com/5143333/234205604-a1046ad9-1a14-4a37-aaf6-6d99a56d508b.png)
   
   那确定 60650 这个端口对应的进程 Dubbo 版本是 2.6.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] AlbumenJ commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   可以提供一个有问题的 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] sducxh commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   > 现在 Server 应该会判断 Client 请求的版本号的,如果是低版本的 Client 则不会发送 3 和 4。
   
   我还不清楚哪部分代码会拿到client的版本号,假设3.2.0的版本是根据client的版本返回的,那么2.6.2的client版本是release版本,即:2.6.2,而我debug时,3.2.0的server version值是2.0.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] sducxh commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   都是2.0.2:
   ![企业微信截图_16824077774152](https://user-images.githubusercontent.com/5143333/234205758-ebda3fba-cce0-4c6f-8ebb-d2c199fd4862.png)
   
   ![企业微信截图_16824010829593](https://user-images.githubusercontent.com/5143333/234205604-a1046ad9-1a14-4a37-aaf6-6d99a56d508b.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 #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   > 3.2.0的server version值是2.0.2
   
   这个是没问题的,但是对于 Response 会从 Request 获取


-- 
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] sducxh commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   > 
   来自2.6.2 的request:
   ![企业微信截图_16822399983809](https://user-images.githubusercontent.com/5143333/233832249-96005af8-8891-4414-bb58-c888111b9dc3.png)
   
   response这里就是4了
   ![企业微信截图_16822413076225](https://user-images.githubusercontent.com/5143333/233832213-fbce6696-da73-4438-92e4-8826eca3a6f6.png)
   
   然后到client就异常:
   java.io.IOException: Unknown result flag, expect '0' '1' '2', get 4
   
   
   


-- 
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] sducxh commented on issue #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   
   > 
   > 那确定 60650 这个端口对应的进程 Dubbo 版本是 2.6.2?
   
   确定是的,两个截图端口不一样是分了两次请求debug的。重测同样:
   ![企业微信截图_16824087461251](https://user-images.githubusercontent.com/5143333/234209886-24d68460-0b3d-4ca3-b43f-9560e71976f6.png)
   
   ![企业微信截图_16824087814053](https://user-images.githubusercontent.com/5143333/234209913-da992f68-fec0-4d35-b177-706c57759ca7.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 #12154: 2.6.2客户端不能解析3.2.0的response(Unknown result flag, expect '0' '1' '2', get 4)

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

   这个堆栈发一下
   
   从这里:
   ![image](https://user-images.githubusercontent.com/9292748/233911739-78b462f3-e449-46bd-880b-1356ceca4c90.png)
   ![image](https://user-images.githubusercontent.com/9292748/233911848-13113ceb-aa26-4675-ad81-7cdbe2d1ec8f.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