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,7 +50,7 @@ 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) {
53+ if (max_poll_time_milliseconds_ >= 4s) {
5454 throw Exception (PROCESS_SCHEDULE_EXCEPTION , " MaxPollTime is too large (it should be less than 4s)" );
5555 }
5656 max_poll_records_ = gsl::narrow<uint32_t >(utils::parseU64Property (context, MaxPollRecords));
Original file line number Diff line number Diff line change 1818#include " rdkafka_utils.h"
1919
2020#include < array>
21+ #include < vector>
2122
2223#include " minifi-cpp/Exception.h"
2324#include " minifi-cpp/core/logging/Logger.h"
Original file line number Diff line number Diff line change @@ -624,10 +624,10 @@ MinifiStatus MinifiProcessContextGetSslDataFromProperty(MinifiProcessContext* pr
624624 const auto service_shared_ptr = context->getControllerService (*name_str, context->getProcessorInfo ().getUUID ());
625625 if (!service_shared_ptr) { return MINIFI_STATUS_VALIDATION_FAILED ; }
626626 if (const auto ssl_context_service = dynamic_cast <minifi::controllers::SSLContextServiceInterface*>(service_shared_ptr.get ())) {
627- const std::string ca_cert_file = ssl_context_service->getCACertificate ().string ();
628- const std::string passphrase = ssl_context_service->getPassphrase ();
629- const std::string cert_file = ssl_context_service->getCertificateFile ().string ();
630- const std::string private_key_file = ssl_context_service->getPrivateKeyFile ().string ();
627+ const std::string ca_cert_file = ssl_context_service->getCACertificate ().string ();
628+ const std::string passphrase = ssl_context_service->getPassphrase ();
629+ const std::string cert_file = ssl_context_service->getCertificateFile ().string ();
630+ const std::string private_key_file = ssl_context_service->getPrivateKeyFile ().string ();
631631
632632 MinifiSslData ssl_data{
633633 .ca_certificate_file = minifiStringView (ca_cert_file),
You can’t perform that action at this time.
0 commit comments