You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Yogi Devendra (JIRA)" <ji...@apache.org> on 2016/09/07 08:59:20 UTC
[jira] [Commented] (APEXMALHAR-2224) GenericFileOutputOperator
rotateCall fails if no data is written to the file
[ 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)