[
https://issues.apache.org/jira/browse/APEXMALHAR-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15566954#comment-15566954
]
ASF GitHub Bot commented on APEXMALHAR-2254:
--------------------------------------------
GitHub user mattqzhang reopened a pull request:
https://github.com/apache/apex-malhar/pull/448
APEXMALHAR-2254-2269-2270 Fix bugs on replay tuple skipping and idemp…
@PramodSSImmaneni please review it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mattqzhang/apex-malhar
APEXMALHAR-2254-2269-2270
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-malhar/pull/448.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #448
----
commit 219904eb3d87431298173d1e6d512b2d141e92e5
Author: Matt Zhang <[email protected]>
Date: 2016-10-10T16:49:47Z
APEXMALHAR-2254, APEXMALHAR-2269, APEXMALHAR-2270 Fix bugs on replay tuple
skipping and idempotency issues.
----
> File input operator is not idempotent with closing files on replay
> ------------------------------------------------------------------
>
> Key: APEXMALHAR-2254
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2254
> Project: Apache Apex Malhar
> Issue Type: Bug
> Reporter: Pramod Immaneni
> Assignee: Matt Zhang
>
> With the file input operator, on a replay in a failure scenario, the same
> data is output as before the failure, for every window that is being replayed
> after checkpoint. To do this the operator keeps track of the files and
> offsets for every window and replays the data based on that.
> However, if it so happens that before the failure the processing of a file
> was finished and it was closed exactly before the end window and the next
> file was opened and processed in a new window, in the replay the closing of
> the first file does not happen in earlier window but happens in the latter
> window. This can cause problems if an operator depends on the closing file
> also to happen in an idempotent manner.
> Improve the operator to save the closing and opening of files in the
> idempotent state as well so that it can also happen in an idempotent manner.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)