lordgamez commented on code in PR #1304:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1304#discussion_r854149448
##########
extensions/librdkafka/PublishKafka.cpp:
##########
@@ -602,7 +602,13 @@ bool PublishKafka::configureNewConnection(const
std::shared_ptr<core::ProcessCon
}
}
value = "";
- if (context->getProperty(QueueBufferMaxMessage.getName(), value) &&
!value.empty()) {
+ uint32_t int_val;
+ if (context->getProperty(QueueBufferMaxMessage.getName(), int_val)) {
+ if (int_val < batch_size_) {
+ throw Exception(PROCESS_SCHEDULE_EXCEPTION, "Invalid configuration:
Batch Size cannot be larger than Queue Max Message");
Review Comment:
Yes the misconfiguration issue actually came from a user, that's why this
ticket was raised to make it more clear if this case happens.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]