[ 
https://issues.apache.org/jira/browse/CAMEL-16837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-16837.
---------------------------------
    Resolution: Fixed

> Camel-aws2-ddbstream: Batch consumer is not implemented although 
> documentation says that it should be
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16837
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16837
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws2
>    Affects Versions: 3.11.0
>            Reporter: Jiri Ondrusek
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0.0
>
>
> I'm adding the test coverage for aws2-ddbstream component in camel-quarkus 
> ([issue|https://github.com/apache/camel-quarkus/issues/2776]).
> According to the 
> [doc|https://camel.apache.org/components/3.7.x/aws2-ddbstream-component.html#_batch_consumer],
>  batch consumer should be implemented. I see in code that consumer extends 
> `ScheduledBatchPollingConsumer` 
> ([git|https://github.com/apache/camel/blob/main/components/camel-aws/camel-aws2-ddb/src/main/java/org/apache/camel/component/aws2/ddbstream/Ddb2StreamConsumer.java#L38]).
>  Aws2-ddbstream compoinent does not allow to specifies e.g. 
> `maxMessagesPerPoll` or doesn't return any header which should be returned 
> according to [doc|https://camel.apache.org/manual/latest/batch-consumer.html].
> It seems that aws2-ddbstream component implements 
> `BatchConsumer.processBatch`, but does not use (even if it implements all of 
> the required methods) the rest of the `batchConsumer` logic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to