| Summary: | Camel Splitter does not close Closable on RuntimeException | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | zaugg+bugzilla |
| Component: | Camel | Assignee: | Tomohisa Igarashi <toigaras> |
| Status: | MODIFIED --- | QA Contact: | Matej Melko <mmelko> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.0 | CC: | aileenc, atangrin, ganandan, jcordes, serviceworks, soa-p-jira, tschan+redhat |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
The Camel Splitter does not close the Closable Iterator if a RuntimeException occurs during its iteration. Thus the splitter does not close cleanly.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Enhancement | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
zaugg+bugzilla
2013-12-18 09:40:25 UTC
Is this within the context of FSW or Fuse? We encountered the issue while implementing a PoC for a customer based on JBoss Fuse Service Works 6 Beta (Build ER6). Resetting the flags back to the state it was before Oct-24- 2PM. There was an incorrect bulk update that I'm trying to fix. Tomo, can you try to reproduce? If this still exists in Camel 2.14.0, I guess we need to submit a pull against Camel. The issue still exists in camel-2.14.0, however I think it's an enhancement request rather than a bug, as Iterable is not always Closeable, and there's no rule to close Iterable when it throws RuntimeException. If user provided Iterable throws RuntimeException on next() or hasNext(), then it can close itself right before throwing it. Having said that, I'll try to see if this enhancement is acceptable for Apache camel. Can you add link the to Camel jira? Sent a pull request to camel upstream It has been merged into upstream |