-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Test Ivy 2.5.2 #44477
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
Test Ivy 2.5.2 #44477
Conversation
When master use ivy 2.5.2 and the test targets use ivy 2.5.1:
|
This reverts commit 76f8bf9.
@@ -211,6 +213,10 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils { | |||
tryDownloadSpark(version, sparkTestingDir.getCanonicalPath) | |||
} | |||
|
|||
Files.deleteIfExists(Paths.get(sparkHome.getCanonicalPath, "jars", "ivy-2.5.1.jar")) | |||
val ivyUrl = new URL("https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.5.2/ivy-2.5.2.jar") | |||
IOUtils.copy(ivyUrl, new File(s"${sparkHome.getCanonicalPath}/jars", "ivy-2.5.2.jar")) |
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 been investigating the case of the previous Ivy upgrade failure recently. I found that if the Spark version being tested in HiveExternalCatalogVersionsSuite
also uses Ivy 2.5.2, the error like #44477 (comment) will not occur again... But I haven't come up with a better solution yet.
@@ -220,6 +221,7 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils { | |||
"--conf", s"${MASTER_REST_SERVER_ENABLED.key}=false", | |||
"--conf", s"${HiveUtils.HIVE_METASTORE_VERSION.key}=$hiveMetastoreVersion", | |||
"--conf", s"${HiveUtils.HIVE_METASTORE_JARS.key}=maven", | |||
"--conf", s"${JAR_IVY_REPO_PATH.key}=${ivyTestDir.getCanonicalPath}", |
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.
Let me try isolating the Ivy local repo paths for ivy-2.5.1 and 2.5.2 to see if it works.
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.
still failed
This reverts commit 15e9159.
Thank you for the investigation, @LuciferYang . |
@dongjoon-hyun @bjornjorgensen Synchronization:
Therefore, it seems that upgrading to Ivy 2.5.2 can cause issues for end users. If a client with Ivy 2.5.2 is used first and then a client with Ivy 2.5.1 is intended to be used again, it is necessary to specify a different |
Apart from backporting the upgrade to branch-3.4 and branch-3.5, I can't think of a better way to reduce this compatibility impact now. So, shall we skip the upgrade to Ivy 2.5.2? Although there is a CVE issue with a score of 8.2 before Ivy 2.5.1 (CVE-2022-46751), it doesn't seem to have a significant impact on Apache Spark. |
it's Ivy 2.5.2 not 2.5.1 |
Yes, you are right |
So the main issue here is that spark have a to old hive version? Are we going to update that to a newer version for spark 4.0? "Although there is a CVE issue with a score of 8.2 before Ivy 2.5.1 (GHSA-2jc4-r94c-rp7h), it doesn't seem to have a significant impact on Apache Spark." "SECURITY-2924 / CVE-2022-46751 This allows attackers able to control the input file for the "Trigger the |
No, the main issue is |
For Spark, what specific harm will it suffer if it is not upgraded? Since I don't have a clear understanding of the specific results, I choose a way that does not break compatibility now. Due to my personal knowledge limitations, this decision may be wrong. If upgrading is necessary, could you submit a PR to fix it and explain in detail the specific harm to Spark if it is not upgraded? @bjornjorgensen thanks ~ |
What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?