davsclaus opened a new pull request, #3282: URL: https://github.com/apache/camel-kamelets/pull/3282
`kafka-source-route-test` failed now and then with a timeout: its HTTP server got no request within 10 seconds. It failed twice today while other builds were running, for example on #3265 and #3281. **The cause:** the test sends its record as soon as the integration logs `Subscribed to topic(s)`. Subscribing comes before the consumer group has joined and the partition is assigned, which took about 3 seconds in the logs. `kafka-source` defaults to `autoOffsetReset: latest`, so when the partition is assigned after the record was written, the consumer starts after it and never reads it. **The fix:** the test route sets `autoOffsetReset: earliest`. The topic belongs to this test, so earliest reads only its own record. Nothing changes in the Kamelet. ### Tests `KafkaIT`: 6 of 6 pass, in two runs in a row. _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
