You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Benjamin Zheng (Jira)" <ji...@apache.org> on 2020/12/23 03:25:00 UTC

[jira] [Created] (CAMEL-15983) URISupport have an bug in method doFastNormalizeUri for normalize EndpointKey

Benjamin Zheng created CAMEL-15983:
--------------------------------------

             Summary: URISupport have an bug in method doFastNormalizeUri for normalize EndpointKey 
                 Key: CAMEL-15983
                 URL: https://issues.apache.org/jira/browse/CAMEL-15983
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.6.0
            Reporter: Benjamin Zheng
         Attachments: image-2020-12-23-11-15-49-815.png, image-2020-12-23-11-17-24-982.png

Did not set prev with key after compareTo, and prev value is always the first item of parameter.keySet(), if keyset like this: a, c, b, and the value of sort after for loop is false, but its shoud be true. 

!image-2020-12-23-11-15-49-815.png!

when I build two routes with similar to-endpoint, build 2nd route will trigger registerEndpointCallback method, this makes AbstractCamelContext have two endpoint with similar endpointkey in endpoints(EndpointRegistry), then if I remove one of them by removeRoute method, camel context will invoke removeEndpoints by matchEndpoint at line 742, camel will stop all of them(include its connection pool) but did not remove from EndpointRegistry(key is not match), then when new exchange passing to to-endpoint, connection pool shut down exception is arised.

!image-2020-12-23-11-17-24-982.png!

plz have alook about this issue.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)