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

camel-sjms - Session object created from connection that gets closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2
    • 2.19.0
    • camel-sjms
    • None
    • Unknown

    Description

      This is not easy to reproduce I haven't been able to simplify it down from our code to recreate it but I can reliably cause it to happen. Basically if you hit a camel-sjms route with a spike of load from nothing and have a bunch of .toD("dynamic-${route}") it can create more connections than the pool allows then when a connection is returned it is closed and one of the routes will be using a session with a closed connection and will not work until it is restarted.
      The code in question:
      https://github.com/apache/camel/blob/camel-2.18.x/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/producer/InOnlyProducer.java#L51-L67

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            ryeats Ryan Yeats
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: