-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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-30274] Bump commons-collections 3.x to commons-collections4 #21442
base: master
Are you sure you want to change the base?
Conversation
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.
This is not a replacement, but just adding collections4 without using it. Where's the value in that?
I would expect that a replacement also shows the refactoring of the current usage of commons-collections
to commons-collections4
.
9d2b892
to
236b302
Compare
Add it in dependencyManagement to let the submodules match with this version in later using. |
236b302
to
2f1c02f
Compare
Again, why would we add a dependency without using it? There's no value in that. Please change current usage of |
Yes. the best solution is replacing it. U can close this pr, but pls keep issue open, i will try to replace it truely. |
2f1c02f
to
0257664
Compare
0257664
to
4d5e314
Compare
@MartijnVisser PTAL, thanks. |
@chucheng92 The PR can't pass the CI because it doesn't contain the necessary changes to the NOTICE files (where's there's still an outdated reference to the previous versions of commons-collections and none to the new one). |
@MartijnVisser thanks. Is this caused by updating the commons-collections4? It add some transitive dependencies? INFO org.apache.flink.tools.ci.licensecheck.NoticeFileChecker [] - Problems were detected for a NOTICE file. Can we add a NOTICE file in flink-core to address this or temporarily we do not do this updating. |
Yes
No. Like those lines say The issue lies here https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=45877&view=logs&j=b59e5554-36c7-5512-ab1a-b80b74075fce&t=849d419c-1b8f-52b7-e455-d4bc36ec43ad&l=30273
|
i think i already know how to do it. PR-21048 There is similar work done here. thanks. |
1369024
to
e7c038e
Compare
@flinkbot run azure |
@chucheng92 You need to rebase your PR on the latest |
e7c038e
to
ffab99d
Compare
@MartijnVisser thanks. i rebased it. ci passed. PTAL |
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 I still see some occurrences of org.apache.commons.collections
, can we get completely get rid of everything that currently uses collections 3.x?
@MartijnVisser I think we can fix it completely. i will fix this and update pr ASAP. Sorry for my mistake. thanks. |
ffab99d
to
a250ea3
Compare
hi. @MartijnVisser please take a look ? |
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 I think in general this is looking good, but I would like to wait until https://issues.apache.org/jira/browse/FLINK-30859 is completed, to avoid another round of syncing towards the Flink Kafka connector repo.
@MartijnVisser thanks for explanations. make sense. we will be watching closely about kafka externalization. |
c844114
to
54bfe88
Compare
@MartijnVisser hi, Martijn, https://issues.apache.org/jira/browse/FLINK-30859 has been resolved. Can you help me to check this pr? |
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 There are still multiple occurrences of org.apache.commons.collections
in the codebase; can you double check please?
Hi @MartijnVisser thanks. it seems like some recent code introduced a old usage. I updated it. please check. |
The CI is failing for your PR. Please check |
@MartijnVisser There is a circular reference. ci failed becase flink-python kafka test case failed. flink-python test case reference flink-sql-connector-kafka(not uber jar, without commons-collections class), so search it in flink and cause ClassNotFoundException. So we need update flink-sql-connector-kafka first. The pr is: apache/flink-connector-kafka#38, when it's fixed this pr can merge, and finally we may remove explicit dependency in flink-connector-kafka repo. |
@MartijnVisser or @chucheng92 do you think this will enter in future releases? Thanks. |
What is the purpose of the change
Apache commons-collections 3.x is a Java 1.3 compatible version, and it does not use Java 5 generics. Apache commons-collections4 4.4 is an upgraded version of commons-collections and it built by Java 8. So we bump commons-collections.
Brief change log
update 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