New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-10791] Provide end-to-end test for Kafka 0.11 connector #7038
Conversation
@pnowojski @aljoscha can you review this PR? thanks. |
LGTM, but I've restarted the travis job. I don't understand why RAT check could have failed intermittently. |
Yes, I also encountered this problem. The first time I forgot to add the Apache License to the pom file, but when I added it, it still failed twice and finally succeeded. This PR does not seem to have missing license information. |
Thanks @yanghua! Merged. |
…e#7038) [FLINK-10791][e2e] Provide end-to-end test for Kafka 0.11 connector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not a good practice to add more examples in order to provide a job for an end-to-end test. It would be better to add this job to the flink-end-to-end-tests
module. Now we have the problem that the end-to-end tests require us that the KafkaExamples
are in flink-dist
which bloats the release binaries unnecessarily up. I think this needs to be reworked.
@tillrohrmann I agree with your opinion. I have created a new issue (FLINK-10922) to rework specific modules (0.10, 0.11 and 2.0). Will submit PR as soon as possible. cc @pnowojski |
@tillrohrmann the idea was to to not duplicate the code between examples and end to end tests, which can be (at least in this case) essentially the same. I'm not sure what's the problem and what would you like to change? To drop Kafka examples from the |
I think @tillrohrmann means that we don't want the e2e test to rely on But @pnowojski 's considerations are also correct. If we still need to provide an example of the Kafka connector in I personally feel that temporary code duplication is acceptable. Over time, e2e's code may change and evolve independently (to test more features), while the Kafka connector only provides a simple usage example. What do you think? |
I think the Kafka examples don't add much value and should not be shipped with Flink's binary distribution @pnowojski. What we could do is to let The problem is that our Flink binaries have grown from 260 MB to almost 500 MB from |
I agree that it doesn't make much sense to add Kafka example to Flink binary. Examples released with Flink binary should be as simple and easy to use as possible, and should not include dependencies on other systems. |
@tillrohrmann yes, they do not add much value and yes, they are not worth blowing up the release binaries. However they have some value and especially that we are getting and maintaining them for free (as part of end-to-end tests) it would be nice to have them. Flink generally I think lacks of more code examples. Maybe the solution is to come up with some structure that will allow us to ship those (and for other connectors/features?) examples as pure code examples? |
@pnowojski How about providing a |
I think it would be nice to have some Flink cookbook with recipes. Using connectors would be one kind of recipes which we could publish there. Ideally, these recipes would be hosted somewhere as real code to avoid that they get out of sync. |
…e#7038) [FLINK-10791][e2e] Provide end-to-end test for Kafka 0.11 connector
What is the purpose of the change
Provide end-to-end test for Kafka 0.11 connector
Brief change log
Verifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation