[
https://issues.apache.org/jira/browse/CAMEL-20680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842592#comment-17842592
]
JV Singh commented on CAMEL-20680:
----------------------------------
{{Hi [~orpiske] , [~davsclaus] }}
{{KafkaBreakOnFirstErrorSeekIssueIT }}succeeds but is unusual because it
consistently takes over *450* seconds to run whereas other tests take under 50
seconds on an average (another odd test took around 100 sec).
To rule out the time taken for download of docker images, I ran the tests
repeatedly after deleting the local images - with this,
{{KafkaBreakOnFirstErrorSeekIssueIT }}consistently took approximately 700
seconds _(compared to 450 sec when docker images are already downloaded)_
!image-2024-05-01-08-13-28-056.png!
This means, around 250 seconds are necessary purely for fetching and setting up
the docker images locally. So, the remaining 450 seconds remain to be optimised
_({+}assuming{+} these are not deleted every single time on ASF CI
environment)._
For now, I have identified this method as the bottleneck:
KafkaBreakOnFirstErrorSeekIssueIT::{*}publishMessagesToKafka{*}
I have some refactoring in mind for this and might submit a pull request if
there are no objections.
Best regards,
JV
> camel-kafka: reduce KafkaBreakOnFirstErrorSeekIssueIT test duration
> -------------------------------------------------------------------
>
> Key: CAMEL-20680
> URL: https://issues.apache.org/jira/browse/CAMEL-20680
> Project: Camel
> Issue Type: Task
> Components: camel-kafka
> Affects Versions: 4.4.1, 4.5.0
> Reporter: Otavio Rodolfo Piske
> Priority: Major
> Labels: help-wanted
> Fix For: 4.x
>
> Attachments: image-2024-05-01-08-13-28-056.png
>
>
> The test KafkaBreakOnFirstErrorSeekIssueIT takes a very long time to run.
> This consumes unnecessary resources from ASF CI. We should investigate how to
> improve it to it runs quickly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)