Details
Description
This piece of code in MongoEndpoint 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.
Attachments
Issue Links
- is cloned by
-
CAMEL-13125 Camel-MongoDB: Endpoint shutdown closes mongo connection, killing the connection for everyone
- Resolved
- links to