-
Notifications
You must be signed in to change notification settings - Fork 13k
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-4439] Validate 'bootstrap.servers' config in flink kafka consu… #2397
[FLINK-4439] Validate 'bootstrap.servers' config in flink kafka consu… #2397
Conversation
@StephanEwen can you please take a look if it makes sense? there is also a small discussion in the Jira issue about it. Thanks! |
The validation code may easily fail if the broker list format is off. |
@gheo21 Do you plan to update this Pull Request? |
Hi @StephanEwen, Thanks for taking a look at this. Although this would complicate the exception logic code. If you think that this situation does not occur that often, that the users misconfigure all of the boostrap servers and that the logging info it's enough, we can of course close the merge request. I tried to make an improvement but it's only a suggestion ;) |
@StephanEwen I will submit shortly an update then you can take a look. Thanks! |
81bfe72
to
8c1a90b
Compare
@StephanEwen pull request updated, please have a look! |
+1 to merge |
Hi @rmetzger, |
Could you rebase to master again, so that the build turns green? |
8c1a90b
to
3962c29
Compare
Sure, did it. Let's see if it get's green! Thanks. |
done, green build! https://travis-ci.org/apache/flink/builds/157038347 |
Hi @rmetzger , The build got green. Everything should be ok, right? Thanks! |
Thank you. The pull request is now good to be merged! |
I've rebased to current master and triggered a build. https://travis-ci.org/rmetzger/flink/builds/162871029 |
3962c29
to
6c433ae
Compare
6c433ae
to
8eade93
Compare
Hi guys @StephanEwen @rmetzger , I've rebased once again the branch and fixed the merge conflicts. The travis build has two failed builds but one is connection reset by maven and the other one is coming from some incompatible source file which I didn't touch. So how is the merge process? do you still plan to merge it? Thanks. |
Yes, I'm still planning to merge it. I was sick the last few weeks, that's why I didn't proceed. I'm hopefully okay now and I'll try to merge your change today. |
Hi @rmetzger, |
…mer 0.8 This closes apache#2397
Hello everybody,
I would like to contribute a small improvement to Flink.
Lately, I was using the FlinkKafkaConsumer08 to write a streaming topology in flink. Somehow I mistakenly configured the 'boostrap.servers' for the kafka config with invalid hosts.
The message that flink provided was not clearly stating what the problem was. Hence, my improvement consists of a validation of the servers provided in 'boostrap.servers'.
If none of the configured servers are valid then we should fail-fast and a validation exception should be thrown. If at lease one server is valid then we don't throw any exception.
See for more info: https://issues.apache.org/jira/browse/FLINK-4439