szaszm commented on code in PR #1299:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1299#discussion_r858704231
##########
libminifi/src/c2/C2Agent.cpp:
##########
@@ -803,6 +789,7 @@ utils::TaskRescheduleInfo C2Agent::consume() {
extractPayload(C2Payload{ Operation::HEARTBEAT });
}
}
+ if (restart_needed_) { request_restart_(); }
Review Comment:
This was moved to the producer thread, before heartbeat, when the request
queue is empty, i.e. all requests have been processed (including ACK for the
property update that initiated the restart).
--
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]