ijokarumawak commented on a change in pull request #3647: NIFI-6530 - HTTP 
SiteToSite server returns 201 in case no data is ava…
URL: https://github.com/apache/nifi/pull/3647#discussion_r314222065
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/StandardRemoteGroupPort.java
 ##########
 @@ -236,6 +237,11 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
         final Transaction transaction;
         try {
             transaction = client.createTransaction(transferDirection);
+        } catch (final NoContentException e) {
+            context.yield();
+            final String message = String.format("%s successfully connected to 
%s, but it has no flowfiles to provide, yielding", this, url);
+            logger.info(message);
 
 Review comment:
   I'd lower log level to debug.

----------------------------------------------------------------
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

Reply via email to