bakaid commented on a change in pull request #605: MINIFICPP-550 - Implement
RocksDB controller service and component st…
URL: https://github.com/apache/nifi-minifi-cpp/pull/605#discussion_r389757475
##########
File path: libminifi/include/core/ProcessContext.h
##########
@@ -77,6 +85,21 @@ class ProcessContext : public
controller::ControllerServiceLookup, public core::
processor_node_(processor),
logger_(logging::LoggerFactory<ProcessContext>::getLogger()) {
repo_ = repo;
+ std::string id;
+ if
(configuration->get(minifi::Configure::nifi_state_management_provider_local,
id)) {
+ auto node = controller_service_provider_->getControllerServiceNode(id);
+ if (node == nullptr) {
+ logger_->log_error("Failed to find the
CoreComponentStateManagerProvider %s defined by %s", id,
minifi::Configure::nifi_state_management_provider_local);
Review comment:
This is not a fatal failure, only in the case of processors that really need
to store state. If state storage is misconfigured, processors that do not
require it should still run fine.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services