Github user aglotero commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3051#discussion_r232374856
  
    --- Diff: 
nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/main/java/org/apache/nifi/processors/cassandra/QueryCassandra.java
 ---
    @@ -192,15 +205,17 @@ public void onScheduled(final ProcessContext context) 
{
         @Override
         public void onTrigger(final ProcessContext context, final 
ProcessSession session) throws ProcessException {
             FlowFile fileToProcess = null;
    +        FlowFile inputFlowFile = null;
             if (context.hasIncomingConnection()) {
    -            fileToProcess = session.get();
    +            inputFlowFile = session.get();
     
                 // If we have no FlowFile, and all incoming connections are 
self-loops then we can continue on.
                 // However, if we have no FlowFile and we have connections 
coming from other Processors, then
                 // we know that we should run only if we have a FlowFile.
    -            if (fileToProcess == null && context.hasNonLoopConnection()) {
    +            if (inputFlowFile == null && context.hasNonLoopConnection()) {
                     return;
                 }
    +            session.remove(inputFlowFile);
    --- End diff --
    
    I've created a "original" relationship to maintain the logic from other 
processors.


---

Reply via email to