shashank created CAMEL-26947:
--------------------------------
Summary: camel-kafka - a DST fake world for the Kafka consumer
Key: CAMEL-26947
URL: https://issues.apache.org/jira/browse/CAMEL-26947
Project: Camel
Issue Type: Improvement
Components: camel-test, camel-kafka
Reporter: shashank
Assignee: shashank
Part of CAMEL-26610 (tier 1). A fake world for the plain {{camel-kafka}}
consumer, following "Writing a fake world" in {{test-dst.adoc}}, with the
kafka-share world (CAMEL-25910) as the template.
h3. What the world drives
* Commit strategies: sync, async and manual commit, with commits that fail or
are slow.
* {{breakOnFirstError}}, polls that fail in the middle of a batch, and records
redelivered after a failed commit.
* Pause and resume (including a request made while the route is suspended), and
stop while a poll is running.
* A partition reassignment during processing.
The fake follows the Kafka consumer contract as documented (poll,
commitSync/commitAsync, wakeup, rebalance listener), cited in the code. Seam:
{{KafkaClientFactory}}; kafka-clients' {{MockConsumer}} may serve as the base.
h3. Self-check
Per CAMEL-26610, the world must reproduce at least one fixed bug on the code
from before its fix and pass on main. Candidates: CAMEL-25756 (a failed poll
dropped the records of an incomplete batch), CAMEL-25753 (stop waited for the
current poll), CAMEL-25313 (a pause or resume request was lost while suspended).
Marked with {{@DstWorld}} so the catalog and the component page list it.
_Filed with Claude Code on behalf of allthingssecurity._
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)