flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanmirocks <...@git.apache.org>
Subject [GitHub] flink pull request #4997: [FLINK-8046] [flink-streaming-java] Have filter of...
Date Fri, 10 Nov 2017 17:41:09 GMT
GitHub user juanmirocks opened a pull request:


    [FLINK-8046] [flink-streaming-java] Have filter of timestamp compare with strictly SMALLER
(NOT smaller or equal)

    ## What is the purpose of the change
    This change fixes the wrong ignoring of files with same exact timestamp. This change also
matches the doc header of the method (`shouldIgnore`): "...if the modification time of the
file is smaller than...".
    Without this change, some files with same exact timestamp (because they were written at
the same exact long time) will be ignored, which is unexpected by the user.
    Also you would find the funny log of `Ignoring file:/XXX, with mod time= 1510321363000
and global mod time= 1510321363000`
    ## Brief change log
    * Comparison is done with strictly SMALLER (<)
    ## Verifying this change
    This change is a trivial rework / code cleanup without any test coverage.
    ## Does this pull request potentially affect one of the following parts:
      - Dependencies (does it add or upgrade a dependency): no
      - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
      - The serializers: no
      - The runtime per-record code paths (performance sensitive): no
      - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing,
Yarn/Mesos, ZooKeeper: no
      - The S3 file system connector: no
    ## Documentation
      - Does this pull request introduce a new feature? no
      - If yes, how is the feature documented? JavaDocs

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tagtog/flink master

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4997
commit 2db52989fef2455413d42286893c5227983ee74b
Author: Juan Miguel Cejuela <i@juanmi.rocks>
Date:   2017-11-10T16:57:09Z

    compare as strictly SMALLER (not SMALLER OR EQUAL) (as per the doc header "if the modification
time of the file is smaller than")
    Otherwise, some files with same exact timestamp (because they were written at the same
exact long time) will be ignored.



View raw message