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

Leaking exchangesInFlightKeys in ManagedRoute

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.15.1
    • 2.15.2, 2.16.0
    • camel-core
    • None
    • Java 8 u 40 64 bit, Linux

    • Unknown

    Description

      Having a camel context with a single route:

              onException(Throwable.class)
                      .handled(true)
                      .process(handleException()); // essentially  doing exchange.setException(someConvertedException);
      
              from("direct:generalFlow")
                      .routingSlip(property(GeneralFlowRoute.class.getName()));
      

      started from Spring:

          <camelContext id="flows" xmlns="http://camel.apache.org/schema/spring">
              <template id="template" defaultEndpoint="direct:generalFlow"/>
              <routeBuilder ref="generalFlow"/>
          </camelContext>
      
          <bean id="generalFlow" class="com.blabla.GeneralFlowRoute"/>
      

      During performance test both exchangesInFlightKeys and exchangesInFlightStartTimestamps are accumulating over time.

      But if the test is run in one thread with debug - nothing is accumulated.

      Issue found after migration from 2.14.1 to 2.15.1

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            matihost Mateusz Nowakowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment