LuciferYang opened a new pull request, #2837:
URL: https://github.com/apache/uniffle/pull/2837

   ### What changes were proposed in this pull request?
   
   Remove Spark 2 support from the build:
   
   - the `spark2` and `spark2.3` profiles, and the `client-spark/spark2`, 
`client-spark/spark2-shaded` and `integration-test/spark2` modules
   - the spark2 and spark2.3 entries in the CI matrix, and the `-Pspark2` step 
in `sequential.yml`
   - the Spark 2 client in `build_distribution.sh`, with its 
`--spark2-profile`, `--spark2-mvn` and `--without-spark2` options
   - the rss-client-spark2-shaded deploy and its license copy step in 
`publish_maven_artifacts.sh`
   - the dynamic allocation patches for Spark 2.3.4 and 2.4.6, and the Spark 2 
notes in the README and the Spark client guide
   
   The deleted Spark 2 `DelegationRssShuffleManagerTest` was the only test 
where access to the cluster is denied twice and then succeeds on retry. That 
case moves to the Spark 3 and Spark 4 tests. The README now also lists Spark 
4.0, 4.1 and 4.2, and how to build for them.
   
   The Spark 2 branches in `client-spark/common`, 
`SparkVersionUtils.isSpark2()` and its callers, are left for a follow-up PR.
   
   ### Why are the changes needed?
   
   The last Spark 2 release was 2.4.8 in May 2021. Since 0.10.0, 7 commits 
changed `client-spark/spark2` (`git log v0.10.0..4847a073 -- 
client-spark/spark2`, where 4847a073 is the base of this PR), and 6 of them 
repeated a change made in the Spark 3 client.
   
   Fix: #2836
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The binary distribution no longer has `jars/client/spark2`, and 
rss-client-spark2-shaded is no longer published. The released artifacts up to 
0.10.0 stay on Maven Central, so Spark 2 users can stay on the 0.10.x line. 
`build_distribution.sh` now exits with an error on `--spark2-profile`, 
`--spark2-mvn` and `--without-spark2`.
   
   ### How was this patch tested?
   
   `DelegationRssShuffleManagerTest.testTryAccessCluster` in the Spark 3 and 
Spark 4 clients gains a case where access is denied twice and accepted on the 
third and last attempt (`rss.client.access.retry.times=3`). It asserts that 
`RssShuffleManager` is created and that `accessCluster` is called exactly 3 
times.
   
   I ran `build_distribution.sh` with its default options. In the tarball, 
`jars/client` holds only the spark3, mr and tez clients, and `RELEASE` no 
longer mentions Spark 2.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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