Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Map<String, Object> kafkaCommonProperties(KafkaProperties kafkaProperties
// polling interval. how many seconds consumer can work with pack of messages
// time to process last polled records + idle between polls must be less than
// max.poll.interval.ms.
props.put(ConsumerConfig.MAX_POLL_INTERVAL_MS_CONFIG, 15_000);
props.put(ConsumerConfig.MAX_POLL_INTERVAL_MS_CONFIG, 40_000);

// before he hits new poll
props.put(ConsumerConfig.RETRY_BACKOFF_MS_CONFIG, 500);
Expand Down Expand Up @@ -238,7 +238,7 @@ public KafkaErrorHandler errorHandlerProtobuf() {
KafkaErrorHandler errorHandler =
new KafkaErrorHandler(
(consumerRecord, e) -> {
// logic to execute when all the retry attemps are exhausted
// logic to execute when all the retry attempts are exhausted
},
fixedBackOff);
errorHandler.addRetryableExceptions(SocketTimeoutException.class);
Expand Down
Loading