szaszm 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_r366339331
########## 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: Error during construction should result in an exception being thrown. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services