mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Use proper max block size in case of setting is not specified
This commit is contained in:
parent
56b03ee22a
commit
421ace6271
@ -788,9 +788,16 @@ StorageKafka2::PolledBatchInfo StorageKafka2::pollConsumer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!consumer.hasMorePolledMessages()
|
if (!consumer.hasMorePolledMessages()
|
||||||
&& (total_rows >= kafka_settings->kafka_max_block_size || !check_time_limit()
|
&& (total_rows >= getMaxBlockSize() || !check_time_limit()
|
||||||
|| failed_poll_attempts >= MAX_FAILED_POLL_ATTEMPTS || consumer.needsOffsetUpdate()))
|
|| failed_poll_attempts >= MAX_FAILED_POLL_ATTEMPTS || consumer.needsOffsetUpdate()))
|
||||||
{
|
{
|
||||||
|
LOG_TRACE(
|
||||||
|
log,
|
||||||
|
"Stopped collecting message for current batch. There are {} failed polled attempts, {} total rows and consumer needs "
|
||||||
|
"offset update is {}",
|
||||||
|
failed_poll_attempts,
|
||||||
|
total_rows,
|
||||||
|
consumer.needsOffsetUpdate());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user