Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5091

Camel markerFile not deleted if file consumer is used with pollEnrich and custom aggregation strategy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • jboss-fuse-6.2.1
    • Camel
    • % %
    • Hide

      Use either

      • default pollEnrich aggregationStrategy
      • don't use markerFile (e.g. adding readLock=none) to the file endpoint url.
      Show
      Use either default pollEnrich aggregationStrategy don't use markerFile (e.g. adding readLock=none) to the file endpoint url.
    • Hide

      Use unit test provided in poll-enrich-test.tgz and run mvn test

      Show
      Use unit test provided in poll-enrich-test.tgz and run mvn test

    Description

      Suppose a Camel route that uses pollEnrich to enrich messages using a file consumer

          <route id="timerToLog" trace="true">
            <from uri="timer:foo?period=1000&amp;repeatCount=1"/>
            <pollEnrich strategyRef="replaceAggregationStrategy" >
              <constant>file:target/pollEnrich?fileName=enrich.txt&amp;readLock=markerFile</constant>
            </pollEnrich>
            <to uri="mock:result"/>
          </route>
      

      While the file to enrich from is read correctly, the markerFile does not get deleted if a custom aggregationStrategy is configured. As a result the file remains locked and does not get moved to .camel/ folder and no further exchanges will be processed.

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            rhn-support-tmielke Torsten Mielke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: