flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl0u <...@git.apache.org>
Subject [GitHub] flink pull request #4900: [FLINK-7666] Close TimeService after closing opera...
Date Wed, 25 Oct 2017 09:13:25 GMT
GitHub user kl0u opened a pull request:

    https://github.com/apache/flink/pull/4900

    [FLINK-7666] Close TimeService after closing operators.

    
    R @aljoscha 
    
    **(The sections below can be removed for hotfixes of typos)**
    
    ## What is the purpose of the change
    
    *Breaks the `quiesceAndWait` of the `TimeService` into 2 methods, `quiesce` and `wait`,
and calls them **after** closing the operators. The `quiesce()` is called while having the
`checkpointLock`, while the `wait()` no.
    
    The original problem was that the StreamTask was calling the `quiesceAndAwaitPending()`
of the
    `TimerService` before the close() of the operator. In the case  of the continuous file
reading process, this meant that with a periodic watermark emitter and a small file (e.g.
one split), the timer service would be closed before even starting to read (as soon as the
reader received the first split), and no timers would be registered to emit watermarks.
    
    ## Verifying this change
    
    Added test in the `OneInputStreamTaskTest`.
    
    ## Documentation
    
      - Does this pull request introduce a new feature? NO


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

    $ git pull https://github.com/kl0u/flink fs-reader

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

    https://github.com/apache/flink/pull/4900.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 #4900
    
----

----


---

Mime
View raw message