-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-12024] Bump universal Kafka connector to Kafka dependency to 2.2.0 #8055
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
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
|
cc @aljoscha and @pnowojski |
|
No problems in terms of licensing. |
|
Please, this fixes some really annoying bugs in Kafka |
|
While the universal tries to track the latest Kafka client version, at times it may fall behind. E.g. before this update it was using 2.0.1, skipping the 2.1.x series entirely. At the moment the version of the client used for the universal connector is not mentioned in the Flink documentation. It may be useful to do so. Users may be interested is knowing the specific version so they can tell whether specific features or fixes are included in the connector. |
|
@eliaslevy Your comment makes sense. I agree with you. I suggest we should describe the current kafka client version which the universal kafka connector tracks in the documentation. Any time when we upgrade the kafka's version, we also should update the document. What do you think? @pnowojski @aljoscha @zentol |
|
I think this makes sense, yes. |
|
@aljoscha OK, thanks for your reply. I will remark the kafka client version in the document. |
docs/dev/connectors/kafka.md
Outdated
| <td>FlinkKafkaConsumer<br> | ||
| FlinkKafkaProducer</td> | ||
| <td>>= 1.0.0</td> | ||
| <td>>= 1.0.0 (until 2.2.0)</td> |
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.
@aljoscha and @pnowojski What do you think about this change?
|
That's no good, because the Kafka client is also forward compatible, except
for be features. An that is needed is just a comment stating the version
used.
…On Thu, Mar 28, 2019 at 6:55 AM vinoyang ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/dev/connectors/kafka.md
<#8055 (comment)>:
> @@ -85,7 +85,7 @@ For most users, the `FlinkKafkaConsumer08` (part of `flink-connector-kafka`) is
<td>1.7.0</td>
<td>FlinkKafkaConsumer<br>
FlinkKafkaProducer</td>
- <td>>= 1.0.0</td>
+ <td>>= 1.0.0 (until 2.2.0)</td>
@aljoscha <https://github.com/aljoscha> and @pnowojski
<https://github.com/pnowojski> What do you think about this change?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8055 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAsQ4nHbn53NEzXjFyi3V0AYAVYFr3Keks5vbKP2gaJpZM4cM1us>
.
|
|
@eliaslevy Sounds reasonable. My change will make the users confused. |
docs/dev/connectors/kafka.md
Outdated
| <td> | ||
| This universal Kafka connector attempts to track the latest version of the Kafka client. | ||
| The version of the client it uses may change between Flink releases. | ||
| The version of the client it uses may change between Flink releases. Now, it uses Kafka client 2.2.0. |
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.
@eliaslevy What about this change?
|
Good enough, but I would rephrase it as "As of this release, it uses the Kafka 2.2.0 client." |
|
@eliaslevy Thanks for your suggestion, accepted your opinion. |
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.
Thanks for the PR and the reviews :) One comment/question: what about other occurrences of the 2.0.1 string in the code base? Shouldn't they be changed as well?
git grep "2\.0\.1"
flink-connectors/flink-sql-connector-kafka/src/main/resources/META-INF/NOTICE:- org.apache.kafka:kafka-clients:2.0.1
flink-end-to-end-tests/flink-sql-client-test/pom.xml: <version>2.0.1</version>
flink-end-to-end-tests/test-scripts/test_sql_client.sh:KAFKA_VERSION="2.0.1"
flink-end-to-end-tests/test-scripts/test_sql_client_kafka.sh:source "$(dirname "$0")"/test_sql_client_kafka_common.sh 2.0 2.0.1 5.0.0 5.0 "kafka" "universal"
flink-end-to-end-tests/test-scripts/test_streaming_kafka.sh:source "$(dirname "$0")"/kafka-common.sh 2.0.1 5.0.0 5.0
flink-filesystems/flink-fs-hadoop-shaded/src/main/resources/META-INF/NOTICE:Azure Data Lake Store - Java client SDK 2.0.11
flink-jepsen/src/jepsen/flink/flink.clj:(def kafka-dist-url "http://mirror.funkfreundelandshut.de/apache/kafka/2.0.1/kafka_2.11-2.0.1.tgz")
|
@pnowojski Thanks for pointing these version number. I have upgraded them to Moreover, I found the first arg |
pnowojski
left a comment
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.
In that case @yanghua it would be much better to drop this KAFKA_CONNECTOR_VERSION in this PR (as separate commit, before upgrading the connector version). Also can you resolve conflict in this PR?
| @@ -20,7 +20,7 @@ | |||
| set -Eeuo pipefail | |||
|
|
|||
| KAFKA_CONNECTOR_VERSION="2.0" | |||
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.
Either please update it for a consistency or drop the field in this PR (as separate commit, before upgrading the connector version). As it is now, it's confusing and misleading.
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.
OK, I will drop it in a separate commit.
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.
@pnowojski I have finished this work, can you review again? thanks.
| set -Eeuo pipefail | ||
|
|
||
| source "$(dirname "$0")"/test_sql_client_kafka_common.sh 2.0 2.0.1 5.0.0 5.0 "kafka" "universal" | ||
| source "$(dirname "$0")"/test_sql_client_kafka_common.sh 2.0 2.2.0 5.0.0 5.0 "kafka" "universal" |
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.
ditto 2.0
pnowojski
left a comment
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.
Thanks for the change @yanghua. LGTM and merging :)
….2.0 (apache#8055) This commit also removes useless arg:KAFKA_CONNECTOR_VERSION
….2.0 (apache#8055) This commit also removes useless arg:KAFKA_CONNECTOR_VERSION
What is the purpose of the change
This pull request bumps universal Kafka connector to Kafka dependency to 2.2.0
Brief change log
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:
@Public(Evolving): (yes / no)Documentation