[
https://issues.apache.org/jira/browse/APEXMALHAR-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15470073#comment-15470073
]
Yogi Devendra commented on APEXMALHAR-2224:
-------------------------------------------
One possible solution could be:
check for currentPartTupleCount in GenericFileOutputOperator.rotateCall. If it
is zero then return without rotating.
> GenericFileOutputOperator rotateCall fails if no data is written to the file
> ----------------------------------------------------------------------------
>
> Key: APEXMALHAR-2224
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2224
> Project: Apache Apex Malhar
> Issue Type: Bug
> Reporter: Yogi Devendra
> Assignee: Velineni Lakshmi Prasanna
> Priority: Minor
>
> In GenericFileOutputOperator operator, if no data is written to the file;
> .tmp file does not get created on HDFS.
> An attempt to rotate non-existent file leads to NPE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)