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

ReloadStrategySupport wrongly logs "Routes with no id's detected"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.19.0
    • 2.19.1, 2.20.0
    • camel-core
    • Novice

    Description

      I tested the "Auto reload XML files" which is new in camel 2.19.0.

      All my xml routes in the camel context have an id and still I keep getting a "Routes with no id's detected. Its recommended to assign id's to your routes so Camel can reload the routes correctly." warning message in my logs when I update the camel context file.

      The ReloadStrategySupport.java says in line 138:

      unassignedRouteIds |= route.hasCustomIdAssigned();
      

      while this should be (mark the negation):

      unassignedRouteIds |= !route.hasCustomIdAssigned();
      

      This is a minor issues because this is only a warning message in the logs with no further impact.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            ronny.aerts.intris Ronny Aerts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: