Bug 1180727
| Summary: | Please fix DoneFile behavior when multiple files are consumed. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Rick Wagner <rwagner> | ||||
| Component: | Camel | Assignee: | kconner | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Jiri Sedlacek <jsedlace> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.0 GA | CC: | aileenc, oskutka, soa-p-jira | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-03-04 16:08:34 UTC | Type: | Support Patch | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 978382 [details]
Replicator. Demonstrates Camel working as intended, SY misbehaves.
Marking this BZ as 'WONTFIX' as it will be fixed on FSW 6.2 (with it's upgraded Camel component) and fixing it on FSW 6.0 would not be cost effective. Rick |
Camel allows use of a 'DoneFile' to indicate a file is ready for consumption. When Camel itself is used, it properly processes multiple files in the input directory. When Camel is used through SwitchYard's Camel File Component, DoneFiles are not removed from the input directory. (The files are processed, but only the first 'marker' file is removed.) Please see attached replicator. ---------------------------------------------------------------------- Change the RouteBuilder in the attached Camel replicator so it references directories on your machine. In the input directory, drop a few files that match the desired pattern. I.E.: afile.txt afile.txt.ready // 'DoneFile' afile1.txt afile1.txt.ready // 'DoneFile' afile2.txt afile2.txt.ready // 'DoneFile' Run the route, you should see the 'In' directory become empty and the Out directory contains only the target files ('DoneFiles' are deleted.) ----------------------------------------------------------------------- Now try the SwitchYard equivalent. Note that only one 'DoneFile' is ever deleted-- the rest hang around in the input directory.