You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "devdeegaw (via GitHub)" <gi...@apache.org> on 2023/06/12 08:50:12 UTC

[GitHub] [camel] devdeegaw commented on a diff in pull request #10315: CAMEL-19433: Handle error while consuming records from topic

devdeegaw commented on code in PR #10315:
URL: https://github.com/apache/camel/pull/10315#discussion_r1226311268


##########
components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaFetchRecords.java:
##########
@@ -358,6 +358,10 @@ protected void startPolling() {
             if (LOG.isTraceEnabled()) {
                 LOG.trace("The kafka consumer was woken up while polling on thread {} for {}", threadId, getPrintableTopic());
             }
+        } catch (Error e) { // NOSONAR - rethrown

Review Comment:
   @orpiske Although it would not resolve the problem entirely, capturing the error and implementing appropriate logging would provide valuable insights to the developer regarding the occurrences of poll timeouts and the consumer leaving the group.



-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org