Andrea Cosentino created CAMEL-13125:
----------------------------------------

             Summary: Camel-MongoDB: Endpoint shutdown closes mongo connection, 
killing the connection for everyone
                 Key: CAMEL-13125
                 URL: https://issues.apache.org/jira/browse/CAMEL-13125
             Project: Camel
          Issue Type: Bug
          Components: camel-mongodb3
    Affects Versions: 2.23.1
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino
             Fix For: 2.21.5, 2.22.3, 3.0.0, 2.23.2, 2.24.0


[This piece of code in 
MongoEndpoint|https://github.com/apache/camel/blob/21bb980d29cdb7f09d875f8278fcf1d21f785ea0/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java#L302]
 closes the underlying MongoClient object when an Endpoint gets stopped. This 
is not correct behavior. There most probably are other endpoints using the 
client and this closes the connection for all of them. So if route1 stops and 
route2 is using the same MongoClient (from the registry) then route2 just got 
nuked.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to