dengc367 commented on code in PR #14355:
URL: https://github.com/apache/gravitino/pull/14355#discussion_r4599966692


##########
gradle/libs.versions.toml:
##########
@@ -181,7 +181,10 @@ datanucleus-jdo = "3.2.0-m3"
 hudi = "0.15.0"
 google-auth = "1.28.0"
 aliyun-credentials = "0.3.12"
-aliyun-sdk-oss = "3.10.2"
+# hadoop-project 3.3.6 manages aliyun-sdk-oss at 3.13.0 and Iceberg 1.11 
OSSFileIO is
+# compiled against the 3.13.0 OSSClient#deleteObject signature; 3.10.2 throws
+# NoSuchMethodError on OSS deletes.

Review Comment:
   Thanks — both points check out and I've fixed them.
   
   Iceberg 1.11.0 is compiled against `aliyun-sdk-oss` 3.18.5, and 
`OSS#deleteObject(String, String)` has returned `VoidResult` since 3.12.0 
(confirmed with `javap` against the 3.10.2, 3.12.0 and 3.13.0 jars). I applied 
your suggestion to the catalog comment, and the PR description now states 
3.18.5 as the compiled-against version, the 3.12.0 signature change, and why 
3.13.0 (Hadoop 3.3.6 alignment) rather than 3.18.5 is enough to fix the linkage.



##########
gradle/libs.versions.toml:
##########
@@ -181,7 +181,10 @@ datanucleus-jdo = "3.2.0-m3"
 hudi = "0.15.0"
 google-auth = "1.28.0"
 aliyun-credentials = "0.3.12"
-aliyun-sdk-oss = "3.10.2"
+# hadoop-project 3.3.6 manages aliyun-sdk-oss at 3.13.0 and Iceberg 1.11 
OSSFileIO is
+# compiled against the 3.13.0 OSSClient#deleteObject signature; 3.10.2 throws
+# NoSuchMethodError on OSS deletes.
+aliyun-sdk-oss = "3.13.0"

Review Comment:
   Agreed — the Spark and Flink guides still point at SDK 3.10.2 and reproduce 
the same `NoSuchMethodError`. I'll send a separate docs change to align the 
client-side OSS SDK with the client's Iceberg runtime (3.18.5 for Iceberg 
1.11.0). The old Aliyun CDN download only exists for 3.10.2, so the guides will 
need to point at Maven Central and list the required jars; I'll verify the 
exact set before opening that PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to