gnodet-bot commented on code in PR #30875:
URL: https://github.com/apache/camel/pull/30875#discussion_r4711796595


##########
components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/Kinesis2Configuration.java:
##########
@@ -54,6 +54,12 @@ public class Kinesis2Configuration implements Cloneable, 
AwsCommonConfiguration
                             + " from 1 to 10000. Not used by the KCL consumer 
(useKclConsumers).",
               defaultValue = "1000")
     private int maxResultsPerRequest = 1000;
+    @UriParam(label = "consumer", defaultValue = "10",
+              description = "Maximum number of shards that the consumer reads 
at the same time in a poll, each on a thread of a"
+                            + " thread pool of the consumer, which also routes 
the records of the shard. With 1, or a stream of"
+                            + " one shard, the consumer reads the shards one 
after the other on its own thread. Not used with"
+                            + " shardId, or by the KCL consumer 
(useKclConsumers).")
+    private int maxConcurrentShards = 10;

Review Comment:
   `maxConcurrentShards ≤ 0` silently falls back to sequential reads 
(`maxConcurrentShards > 1` in `doStart` skips executor creation). That is 
harmless but undocumented — a user who sets `maxConcurrentShards=0` expecting 
"unlimited" gets sequential behavior with no warning. Either add a note to the 
`@UriParam` description ("`Values ≤ 1 read shards one after the other on the 
consumer thread`") or add a guard in `setMaxConcurrentShards` / `doStart` that 
rejects values below 1.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to