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

Dynamic router component should add filters to a map (by filter id) instead of a list to prevent multiple additions of the same filter.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.18.3, 3.20.0
    • None
    • None
    • Unknown

    Description

      Adding routing filters to the dynamic router processor can lead to having multiple entries of essentially the same filter.  Filters are identified by ID, and the processor accumulates filters in a list, so no uniqueness (by ID) is maintained.  If a component starts, and then restarts any number of times, it might register the same filter each time, if it registers with the dynamic router upon startup.  The filters need to be accumulated as a map, where the key is the filter ID.  Filters will be overridden if a filter by that ID exists when a component registers its filter.  Therefore, it is the responsibility of the user of the dynamic router component to coordinate filter registration and the IDs that are used.

      Attachments

        Activity

          People

            Steve973 Steve Storck
            Steve973 Steve Storck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: