LuciferYang commented on code in PR #2767:
URL: https://github.com/apache/uniffle/pull/2767#discussion_r3619899984


##########
client/pom.xml:
##########
@@ -37,6 +37,12 @@
       <groupId>org.apache.uniffle</groupId>
       <artifactId>shuffle-storage</artifactId>
     </dependency>
+    <!-- commons-io in shuffle-storage follows hadoop.scope; add it explicitly 
for client tests. -->
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>

Review Comment:
   The explicit commons-io was only added to `client` (test), `coordinator`, 
`server`, and `storage`, but `common` (`IOUtils` in 
`HadoopFilesystemProviderTest`) and `integration-test/spark-common` 
(`FileUtils` in `SparkClientWithLocalTest`) use it too and were left out. They 
compile today only because `common` gets it transitively from `hadoop-minikdc` 
and `integration-test/spark-common` from `spark-core`. Since this PR's rule is 
"declare it explicitly once it's no longer transitive," these two should follow 
suit and add commons-io at test scope. Otherwise the day someone touches the 
minikdc dependency, the breakage shows up only under spark4.



##########
pom.xml:
##########
@@ -69,6 +70,9 @@
     <guava.version>32.1.3-jre</guava.version>
     <hadoop.scope>provided</hadoop.scope>
     <hadoop.version>2.8.5</hadoop.version>
+    <hadoop-client-api.artifactId>hadoop-common</hadoop-client-api.artifactId>

Review Comment:
   These three property names don't match their default values, which makes 
them easy to misread. `hadoop-client-api.artifactId` defaults to 
`hadoop-common` (the full impl, not an api jar), and 
`hadoop-client-runtime.artifactId` defaults to `hadoop-client` (an aggregator 
pom, not a shaded runtime). Both names come from the spark4 override, but the 
default is a structurally different artifact. `hadoop-minicluster.artifactId` 
goes the other way: named after its default, overridden only in spark4. So the 
three properties follow two different conventions. What worries me is someone 
reading `${hadoop-client-runtime.artifactId}` as a self-contained shaded jar 
and deleting the exclusion list that the `hadoop-client` aggregator actually 
needs, which pulls jersey/jetty back into the default build. Either give the 
properties neutral names (something like `hadoop.artifact.core` / `client` / 
`minicluster`), or add a comment at the definition spelling out the default and 
spark4 values and why the
 y differ.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to