timeabarna commented on a change in pull request #4824:
URL: https://github.com/apache/nifi/pull/4824#discussion_r576800712
##########
File path:
nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors/src/main/java/org/apache/nifi/processors/splunk/QuerySplunkIndexingStatus.java
##########
@@ -194,7 +197,11 @@ public void onTrigger(final ProcessContext context, final
ProcessSession session
final EventIndexStatusResponse splunkResponse =
unmarshallResult(responseMessage.getContent(), EventIndexStatusResponse.class);
splunkResponse.getAcks().entrySet().forEach(result -> {
- final FlowFile toTransfer =
undetermined.get(result.getKey());
+ FlowFile toTransfer = undetermined.get(result.getKey());
+ if
(!extractBoolean(toTransfer.getAttribute(ACKCHECKED_ATTRIBUTE)).orElse(Boolean.FALSE))
{
+ toTransfer = setAckCheckedToTrue(session, toTransfer);
Review comment:
Thanks, extracted it as proposed
----------------------------------------------------------------
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]