pan3793 opened a new pull request, #7798:
URL: https://github.com/apache/kyuubi/pull/7798

   ### Why are the changes needed?
   
   Fix two compatibility failures and one timing flake in the [branch-1.11 CI 
run](https://github.com/apache/kyuubi/actions/runs/40306781716):
   
   1. The nondeterministic CTE test expects `RepartitionByExpression`, but 
Spark 3.3 uses `Repartition`. Check their shared `RepartitionOperation` 
superclass while retaining the value-equality and exchange-reuse assertions.
   2. The JDBC lineage test fails with `No suitable driver` on Spark 3.3/3.4 
with JDK 8. Initialize Derby explicitly in the test classloader before opening 
the JDBC connection.
   3. The admin CLI test lists engines immediately after deletion, which can 
race with asynchronous ZooKeeper deregistration. Retry only the final list 
assertion with a bounded wait; keep deletion and its success assertion 
single-shot.
   
   No production code or runtime dependencies change.
   
   ### How was this patch tested?
   
   Existing suites cover all three fixes.
   
   1. Reproduced the JDBC lineage failure on the base branch with Spark 
3.3.4/JDK 8.
   2. Spark 3.3.4/JDK 8: 79 lineage tests passed, 2 version-inapplicable tests 
canceled, and all 52 `HiveCatalogRangerSparkExtensionSuite` tests passed.
   3. Spark 3.5.8/JDK 8: all 3 `AdminCtlSuite` tests passed after building the 
distribution.
   4. `dev/reformat` and `git diff --check` passed.
   
   With JDK 8 selected, and `SPARK_HOME` pointing to Spark 3.5.8 for the admin 
CLI suite:
   
   ```bash
   build/mvn -B -ntp test \
     -pl 
extensions/spark/kyuubi-spark-lineage,extensions/spark/kyuubi-spark-authz -am \
     -Pspark-3.3,spark-provided,flink-provided,hive-provided \
     -Dtest=none \
     
-DwildcardSuites=org.apache.kyuubi.plugin.lineage,org.apache.kyuubi.plugin.spark.authz.ranger.HiveCatalogRangerSparkExtensionSuite
 \
     -Drat.skip=true
   
   build/dist --spark-provided --flink-provided --hive-provided \
     -B -ntp -Pfast -Pspark-3.5
   
   build/mvn -B -ntp test -pl kyuubi-server -am \
     -Pspark-3.5,spark-provided,flink-provided,hive-provided \
     -Dtest=none \
     -DwildcardSuites=org.apache.kyuubi.server.rest.client.AdminCtlSuite \
     -Drat.skip=true
   
   dev/reformat
   git diff --check
   ```
   
   The full CI matrix was not run locally.
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: DeepSeek Harness:gpt-6.1-sol
   


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