You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/05/03 13:14:00 UTC
[jira] [Updated] (CAMEL-18042) doCatch of a rollback only executes one line after doCatch and prune the rest of the route
[ https://issues.apache.org/jira/browse/CAMEL-18042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18042:
--------------------------------
Fix Version/s: (was: 3.17.0)
> doCatch of a rollback only executes one line after doCatch and prune the rest of the route
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-18042
> URL: https://issues.apache.org/jira/browse/CAMEL-18042
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Affects Versions: 3.16.0
> Reporter: Yasser Zamani
> Priority: Minor
>
> I have following route (simplified)
> {code:java}
> from("quartz://MY_CTRL?cron=0+0/10+8-12+?+*+MON-FRI").routeId("MY_CTRL").
> transacted("PROPAGATION_NEVER").
> .
> .
> .
> doTry().
> to("direct:MY_CSV").
> doCatch(Throwable.class).
> log("CSV generation or upload failed. So delete azure blob").
> log("blahblahblah").
> end(); // end try
> from("direct:MY_CSV").routeId("MY_CSV").
> transacted().
> .
> .
> .
> filter(body().isNotEqualTo(Boolean.TRUE)).
> rollback()
> stop().
> end().
> .
> .
> .
> {code}
> that doesn't print {{blahblahblah}}. When I replace {{rolback()}} with {{throwException(new RuntimeException("Failed to upload"))}} it does.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)