szaszm commented on a change in pull request #1173:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1173#discussion_r710922448
##########
File path: extensions/http-curl/processors/InvokeHTTP.cpp
##########
@@ -443,6 +447,7 @@ void InvokeHTTP::route(const
std::shared_ptr<core::FlowFile> &request, const std
} else {
if (request != nullptr) {
if (penalize_no_retry_) {
+ logger_->log_debug("Flowfile has been penalized");
session->penalize(request);
}
Review comment:
You could check for that log message instead. This is how it's produced:
(ProcessSession.cpp:202)
```
logging::LOG_INFO(logger_) << "Penalizing " << flow->getUUIDStr() << " for
" << penalization_period.count() << "ms at " <<
process_context_->getProcessorNode()->getName();
```
Try using `LogTestController::matchesRegex` to match this message. Something
like this (untested) regex might work: `"Penalizing ([0-9a-f]+-)+[0-9a-f]+ for
[0-9]+ms at invokehttp"`
--
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]