Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13123

Endpoint shutdown closes mongo connection, killing the connection for everyone

    XMLWordPrintableJSON

Details

    • Novice

    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

          Activity

            People

              acosentino Andrea Cosentino
              PeterN Peter Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m