-
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-34955] Upgrade commons-compress to 1.26.0. #24580
Conversation
Thanks, @slfan1989. The build looks healthy, please also update the notice files so that the relevant checks can pass: |
@mbalassi Thank you very much for the review! I will continue to improve this pr. |
- io.confluent:common-utils:7.5.3 | ||
- io.confluent:kafka-schema-registry-client:7.5.3 | ||
- org.apache.avro:avro:1.11.3 | ||
- org.apache.commons:commons-compress:1.24.0 | ||
- org.apache.commons:commons-compress:1.26.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.
In the compilation report, we can find the following error report. The report says this issue must be fixed, but I'm not sure if we should fix it in this PR because it doesn't seem to be related(Upgrade commons-compress to 1.26.0).
09:19:48,111 INFO org.apache.flink.tools.ci.licensecheck.NoticeFileChecker [] - Problems were detected for a NOTICE file.
flink-sql-avro-confluent-registry:
These issue are legally problematic and MUST be fixed:
Dependency commons-io:commons-io:2.11.0 is not listed.
Dependency org.apache.commons:commons-lang3:3.12.0 is not listed.
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.
I would assume these are pulled in as transitive dependencies via the upgrade, thanks for adding them.
@flinkbot run azure |
@slfan1989 Thanks for addressing the Notice checks. We are almost there, the Python integration seems to have relied on a specific classname, that has probably changed. This causes a couple failures we are good otherwise.
Let me know if you prefer getting some help with hunting this down. |
@flinkbot run azure |
@flinkbot run azure |
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.
LGTM, merging tomorrow if there are no objections.
Thank you very much for the review! |
…)" This reverts commit 163b9cc.
|
||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
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.
Hi @mbalassi, @slfan1989,
I think we needn't this dependency, the commons-codec
's dependency is because commons-compress
incorrectly depended on commons-codec
's Charsets in version 1.26.0.
This issue has been fixed in version 1.26.1, so perhaps we should bump commons-compress
version to 1.26.1.
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.
I have rechecked the dependency of commons-codec
in commons-compress
and it is no longer optional. Even if upgraded to 1.26.1, commons-codec
will still be a transitive dependency.
Please ignore the previous noise, sorry for the disturbance.
…)" This reverts commit 163b9cc.
Revert part of `[FLINK-34955] Upgrade commons-compress to 1.26.0. (apache#24580)`
What is the purpose of the change
JIRA: [FLINK-34955] Upgrade commons-compress to 1.26.0.
commons-compress 1.24.0 has CVE issues, try to upgrade to 1.26.0, we can refer to the maven link
https://mvnrepository.com/artifact/org.apache.commons/commons-compress
Brief change log
(for example:)
Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation