[
https://issues.apache.org/jira/browse/NIFI-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105416#comment-15105416
]
ASF GitHub Bot commented on NIFI-1406:
--------------------------------------
Github user olegz commented on the pull request:
https://github.com/apache/nifi/pull/176#issuecomment-172556905
There is also a compile warning in the catch clause preceding the place
where you made you changes
```
} catch (final IOException e) {
flowFile = session.penalize(flowFile);
session.transfer(flowFile, REL_FAILURE);
logger.error("Unable to communicate with
destination {} to determine whether or not it can accept "
+ "flowfiles/gzip; routing {} to failure
due to {}", new Object[]{url, flowFile, e});
context.yield();
return;
}
```
The warning states _*Resource leak: 'throttler' is not closed at this
location*_. Perhaps while you're at it you can fix that as well.
> PostHTTP does not report rate or bytes sent if not configured to send
> FlowFIles
> -------------------------------------------------------------------------------
>
> Key: NIFI-1406
> URL: https://issues.apache.org/jira/browse/NIFI-1406
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 0.4.1
> Reporter: Aldrin Piri
> Assignee: Aldrin Piri
> Priority: Minor
> Fix For: 0.5.0
>
>
> In the event that an instance of PostHTTP is not configured to send content
> as a FlowFile package, the bytes sent will not be captured and the rate will
> always result in 0 bytes per duration.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)