You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Roman Kalukiewicz (JIRA)" <ji...@apache.org> on 2008/03/20 23:09:32 UTC
[jira] Created: (CAMEL-393) BatchProcessor always consumes directly
from endpoint ignoring previous steps
BatchProcessor always consumes directly from endpoint ignoring previous steps
-----------------------------------------------------------------------------
Key: CAMEL-393
URL: https://issues.apache.org/activemq/browse/CAMEL-393
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Reporter: Roman Kalukiewicz
Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
{code}
from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
{code}
at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46575#action_46575 ]
Claus Ibsen commented on CAMEL-393:
-----------------------------------
I commited the patch that throws an exception if the route is not configued properly.
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 2.0.0
>
> Attachments: CAMEL_393.patch
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea reassigned CAMEL-393:
-------------------------------------
Assignee: Hadrian Zbarcea (was: Willem Jiang)
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45232#action_45232 ]
Willem Jiang commented on CAMEL-393:
------------------------------------
Enabled the test by introducing a direct endpoint before the BatchProcessor.
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-393.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.5.1
This is fixed by Martin's patch
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.1, 2.0.0
>
> Attachments: CAMEL_393.patch
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46174#action_46174 ]
Claus Ibsen commented on CAMEL-393:
-----------------------------------
Maybe we should write something to the release notes of 1.5 in the known issues section?
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-393:
----------------------------------
Assignee: Willem Jiang
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46139#action_46139 ]
Hadrian Zbarcea commented on CAMEL-393:
---------------------------------------
This is a bit messy... I may have to move it to 2.0.
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Roman Kalukiewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45234#action_45234 ]
Roman Kalukiewicz commented on CAMEL-393:
-----------------------------------------
Hello Willem!
I see that you enabled the test and it passes by introducing another direct endpoint.
The problem is that it should pass (In my opinion) without introducing this new endpoint in the exact form it was previously.
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46173#action_46173 ]
Claus Ibsen commented on CAMEL-393:
-----------------------------------
yes it actually is, I discovered this too when I was looking into the aggregator.
Great that you pick up the glove and we should get it sorted in camel 2.0.
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-393) BatchProcessor always consumes
directly from endpoint ignoring previous steps
Posted by "Martin Krasser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47930#action_47930 ]
Martin Krasser commented on CAMEL-393:
--------------------------------------
A patch for this is attached to CAMEL-1037
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 2.0.0
>
> Attachments: CAMEL_393.patch
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-393) BatchProcessor always consumes directly
from endpoint ignoring previous steps
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-393:
------------------------------
Attachment: CAMEL_393.patch
A patch to throw an exception if the route is configured wrong so end-users get this exception and can fix it
Later we can get it fixed properly (if possible without to much hazzle)
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 2.0.0
>
> Attachments: CAMEL_393.patch
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-393) BatchProcessor always consumes directly
from endpoint ignoring previous steps
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea updated CAMEL-393:
----------------------------------
Fix Version/s: 2.0.0
(was: 1.5.0)
> BatchProcessor always consumes directly from endpoint ignoring previous steps
> -----------------------------------------------------------------------------
>
> Key: CAMEL-393
> URL: https://issues.apache.org/activemq/browse/CAMEL-393
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Hadrian Zbarcea
> Fix For: 2.0.0
>
>
> Aggregator when created connects itself directly to the endpoint it 'originates' - not to the last step of processing so in such case
> {code}
> from("seda:header").setHeader("visited", constant(true)).aggregator(header("cheese")).to("mock:result");
> {code}
> at {{mock:result}} _visited_ header is not set and in fact there are two different routes created that start from {{seda:header}}: one directly to aggregator, and the second one to {{setHeader()}}.
> In case of direct endpoint everything works because direct component invokes flows one-by-one so it will set the header, and then aggregate, but with seda it doesn't work.
> Lets look at the test I added to {{AggregatorTest}} class to see the problem ({{_testAggregatorNotAtStart()}}). This test doesn't pass so far and I was unable to fix it, because I'm not good enough in DSL code. maybe someone could handle this.
> Another solution is to let to specify aggregator in RouteType so it could be used only just after {{from()}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.