GitHub user tzulitai opened a pull request:

    [FLINK-8741] [kafka] Fix incorrect user code classloader in 

    ## What is the purpose of the change
    Fixes the incorrectly used user code classloader in the Flink Kafka 
    Since 010 / 011 versions reuses the `Kafka09Fetcher`, this fix affects all 
three versions.
    To guard this for the future, the `Kafka010Example` has been adapted to 
demonstrate using a custom watermark assigner. This would have allowed our 
end-to-end tests to catch the issue.
    ## Brief change log
    The end-to-end tests for Kafka now should be failing, without the user code 
classloader fix.
    ## Does this pull request potentially affect one of the following parts:
      - Dependencies (does it add or upgrade a dependency): (yes / **no**)
      - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes / **no**)
      - The serializers: (yes / **no** / don't know)
      - The runtime per-record code paths (performance sensitive): (yes / 
**no** / don't know)
      - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
      - The S3 file system connector: (yes / **no** / don't know)
    ## Documentation
      - Does this pull request introduce a new feature? (yes / **no**)
      - If yes, how is the feature documented? (not applicable / **docs** / 
JavaDocs / not documented)

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

    $ git pull FLINK-8741

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 #5568
commit 45ff7baa78aa7cb0e798865dddda36e2f0d00087
Author: Tzu-Li (Gordon) Tai <tzulitai@...>
Date:   2018-02-23T11:25:06Z

    [FLINK-8741] [kafka] Fix incorrect user code classloader in 
    This commit fixes incorrectly using the parent of the user code class
    loader. Since Kafka 010 / 011 versions directly reuse 09 code, this fix
    fixes the issue for all versions.
    This commit also extends the Kafka010Example, so that is uses a custom
    watermark assigner. This allows our end-to-end tests to have caught this



Reply via email to