File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ MinifiStatus ConsumeKafka::onScheduleImpl(api::core::ProcessContext& context) {
5050 message_header_encoding_ = utils::parseEnumProperty<KafkaEncoding>(context, MessageHeaderEncoding);
5151 duplicate_header_handling_ = utils::parseEnumProperty<consume_kafka::MessageHeaderPolicyEnum>(context, DuplicateHeaderHandling);
5252 max_poll_time_milliseconds_ = utils::parseDurationProperty (context, MaxPollTime);
53- if (max_poll_time_milliseconds_ >= 4s) {
54- throw Exception (PROCESS_SCHEDULE_EXCEPTION, " MaxPollTime is too large (it should be less than 4s)" );
53+ if (max_poll_time_milliseconds_ > 4s) {
54+ throw Exception (PROCESS_SCHEDULE_EXCEPTION, fmt::format ( " MaxPollTime ({}) is too large (max is 4s)" , max_poll_time_milliseconds_) );
5555 }
5656 max_poll_records_ = gsl::narrow<uint32_t >(utils::parseU64Property (context, MaxPollRecords));
5757
You can’t perform that action at this time.
0 commit comments