nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi] arpadboda commented on a change in pull request #3647: NIFI-6530 - HTTP SiteToSite server returns 201 in case no data is ava…
Date Fri, 16 Aug 2019 20:32:49 GMT
arpadboda 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_r314880039
 
 

 ##########
 File path: nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/client/http/HttpClient.java
 ##########
 @@ -168,6 +169,9 @@ public Transaction createTransaction(final TransferDirection direction)
throws H
             try {
                 transactionUrl = apiClient.initiateTransaction(direction, portId);
                 commSession.setUserDn(apiClient.getTrustedPeerDn());
+            } catch (final NoContentException e) {
+                logger.debug("Peer {} has no flowfiles to provide", peer);
+                throw e;
 
 Review comment:
    Generally I like the idea, the impact is going to be way more than the Jira itself would
justify, but I'm fine with that :)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message