Skip to content

Conversation

@yanghua
Copy link
Contributor

@yanghua yanghua commented Mar 27, 2019

What is the purpose of the change

This pull request bumps universal Kafka connector to Kafka dependency to 2.2.0

Brief change log

  • Bump universal Kafka connector to Kafka dependency to 2.2.0

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:

  • 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)

@flinkbot
Copy link
Collaborator

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.

Details
The 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 commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@yanghua
Copy link
Contributor Author

yanghua commented Mar 27, 2019

cc @aljoscha and @pnowojski

@zentol
Copy link
Contributor

zentol commented Mar 27, 2019

No problems in terms of licensing.

@bolkedebruin
Copy link

Please, this fixes some really annoying bugs in Kafka

@eliaslevy
Copy link
Contributor

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.

@yanghua
Copy link
Contributor Author

yanghua commented Mar 28, 2019

@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

@aljoscha
Copy link
Contributor

I think this makes sense, yes.

@yanghua
Copy link
Contributor Author

yanghua commented Mar 28, 2019

@aljoscha OK, thanks for your reply. I will remark the kafka client version in the document.

<td>FlinkKafkaConsumer<br>
FlinkKafkaProducer</td>
<td>>= 1.0.0</td>
<td>>= 1.0.0 (until 2.2.0)</td>
Copy link
Contributor Author

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?

@eliaslevy
Copy link
Contributor

eliaslevy commented Mar 28, 2019 via email

@yanghua
Copy link
Contributor Author

yanghua commented Mar 28, 2019

@eliaslevy Sounds reasonable. My change will make the users confused.

<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.
Copy link
Contributor Author

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?

@eliaslevy
Copy link
Contributor

Good enough, but I would rephrase it as "As of this release, it uses the Kafka 2.2.0 client."

@yanghua
Copy link
Contributor Author

yanghua commented Mar 28, 2019

@eliaslevy Thanks for your suggestion, accepted your opinion.

Copy link
Contributor

@pnowojski pnowojski left a 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")

@yanghua
Copy link
Contributor Author

yanghua commented Apr 9, 2019

@pnowojski Thanks for pointing these version number. I have upgraded them to 2.2.0 except :
flink-filesystems/flink-fs-hadoop-shaded/src/main/resources/META-INF/NOTICE:Azure Data Lake Store - Java client SDK 2.0.11.

Moreover, I found the first arg KAFKA_CONNECTOR_VERSION in test_sql_client_kafka_common.sh seems useless. I suggest that we should remove them in another PR in the future.

Copy link
Contributor

@pnowojski pnowojski left a 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"
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto 2.0

Copy link
Contributor

@pnowojski pnowojski left a 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 :)

@pnowojski pnowojski merged commit 40ebe25 into apache:master Apr 25, 2019
tianchen92 pushed a commit to tianchen92/flink that referenced this pull request May 13, 2019
….2.0 (apache#8055)

This commit also removes useless arg:KAFKA_CONNECTOR_VERSION
jnh5y pushed a commit to jnh5y/flink that referenced this pull request Dec 18, 2023
….2.0 (apache#8055)

This commit also removes useless arg:KAFKA_CONNECTOR_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants