-
Notifications
You must be signed in to change notification settings - Fork 123
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-32522][connectors/kafka] Kafka connector should depend on commons-collections instead of inheriting from flink #38
base: main
Are you sure you want to change the base?
Conversation
@MartijnVisser @XComp Hi, guys. PTAL. thanks |
@MartijnVisser hi, Martijn. Can you help to review it? |
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.
@chucheng92 Looking at the dependency tree, there's still commons-collections coming in via Flink itself. If we want to remove the dependency, we should also make sure that it's not included from there
de3bae3
to
2001668
Compare
Yes. I have updated the PR. old commons-collections in kafka connector is inherited from flink (so we will see it in kafka). This is a circular dependency and we should break it. What I am thinking about now is to change the kafka connector to commons-collections4. When the kafka connector is released, upgrade the kafka-connector that Python depends on to this version on the flink side. In this way, it is decoupled, and the flink side can also be upgraded to commons-collections4. So the apache/flink#21442 can be resolved. And it will remove all the old commons-collections from flink side. |
Of course, the more important point is that pyflink should not rely on connectors, even for integration tests |
…ons-collections instead of inheriting from flink
2001668
to
e4770fb
Compare
What is the purpose of the change
As this thread https://lists.apache.org/thread/l98pc18onxrcrsb01x5kh1vppl7ymk2d discussed.
Connectors shouldn't rely on dependencies that may or may not be
available in Flink itself. But currently kafka connector use commons-collections from flink, we should depend on commons-collections and bundle it in shaded-jar. otherwise, connector will be vulnerable and even block upgrading of flink.
Brief change log
Add commons-collections in pom
Verifying this change
This change is a trivial rework / code cleanup. Verifying by current total cases.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation