You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "yanghao605 (via GitHub)" <gi...@apache.org> on 2024/09/12 12:46:21 UTC

[I] cse这种cse://appId:serviceName/path调用方式,会在URI内部抛出一个URISyntaxException异常 [servicecomb-java-chassis]

yanghao605 opened a new issue, #4514:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4514

   大致原因是在CseUriTemplateHandler中的createUri方法会调用new URI方法创建一个url对象,而cse的url中appId:ServiceName会被解析为port,导致URI内部抛出URISyntaxException异常,进入异常捕获的逻辑
   
   在高并发场景下,这里成为了性能瓶颈,是否可以考虑新增一种appId.ServiceName的形式呢?
   
   


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


Re: [I] cse这种cse://appId:serviceName/path调用方式,会在URI内部抛出一个URISyntaxException异常 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4514:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4514#issuecomment-2347986240

   可以看下https://github.com/apache/servicecomb-java-chassis/pull/4438, 是不是这个修复已经同时解决了你的问题?


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


Re: [I] cse这种cse://appId:serviceName/path调用方式,会在URI内部抛出一个URISyntaxException异常 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4514:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4514#issuecomment-2346211763

   你描述的问题和并发有关系吗?能够提供一下重现方法?


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


Re: [I] cse这种cse://appId:serviceName/path调用方式,会在URI内部抛出一个URISyntaxException异常 [servicecomb-java-chassis]

Posted by "yanghao605 (via GitHub)" <gi...@apache.org>.
yanghao605 commented on issue #4514:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4514#issuecomment-2367617821

   > 可以看下[https://github.com/apache/servicecomb-java-chassis/pull/4438,](https://github.com/apache/servicecomb-java-chassis/pull/4438%EF%BC%8C) 是不是这个修复已经同时解决了你的问题?
   
   链接丢失,这个场景是使用spring的RestTemplate必走的逻辑,创建对应的URI时,会走到URISyntaxException处理逻辑,实际不影响功能,只是在一些高性能要求下,可能会耗时比较多


-- 
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: commits-unsubscribe@servicecomb.apache.org

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