sarutak opened a new pull request, #53767:
URL: https://github.com/apache/spark/pull/53767
### What changes were proposed in this pull request?
This PR fixes an issue that some tests raise `NoClassFoundError` when
building with Maven.
This issue can be reproducible like as follows.
```
$ build/mvn clean install
$ build/mvn -pl assembly clean
$ build/mvn -pl core/sql test
SQLQuerySuite:
*** RUN ABORTED ***
A needed class was not found. This could be due to an error in your runpath.
Missing class: [Lorg/sparkproject/jetty/ee10/servlet/ServletContextHandler;
java.lang.NoClassDefFoundError:
[Lorg/sparkproject/jetty/ee10/servlet/ServletContextHandler;
at
org.apache.spark.metrics.MetricsSystem.getServletHandlers(MetricsSystem.scala:91)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:702)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:147)
at
org.apache.spark.sql.test.TestSparkSession.<init>(TestSQLContext.scala:30)
at
org.apache.spark.sql.test.SharedSparkSessionBase.createSparkSession(SharedSparkSession.scala:110)
at
org.apache.spark.sql.test.SharedSparkSessionBase.createSparkSession$(SharedSparkSession.scala:108)
at
org.apache.spark.sql.SQLQuerySuite.createSparkSession(SQLQuerySuite.scala:61)
at
org.apache.spark.sql.test.SharedSparkSessionBase.initializeSession(SharedSparkSession.scala:126)
at
org.apache.spark.sql.test.SharedSparkSessionBase.initializeSession$(SharedSparkSession.scala:124)
at
org.apache.spark.sql.SQLQuerySuite.initializeSession(SQLQuerySuite.scala:61)
```
To fix this issue, we need to modify shading rules.
### Why are the changes needed?
To recover CI with Maven.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Confirmed `build/mvn -pl core/sql test` doesn't raise `NoClassDefFoundError`.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
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]