felipepessoto opened a new pull request, #13678:
URL: https://github.com/apache/gluten/pull/13678

   <!--
   Thank you for submitting a pull request! Here are some tips:
   
   1. For first-time contributors, please read our contributing guide:
      https://github.com/apache/gluten/blob/main/CONTRIBUTING.md
   2. If necessary, create a GitHub issue for discussion beforehand to avoid 
duplicate work.
   3. If the PR is specific to a single backend, include [VL] or [CH] in the PR 
title to indicate the
      Velox or ClickHouse backend, respectively.
   4. If the PR is not ready for review, please mark it as a draft.
   -->
   
   ## What changes are proposed in this pull request?
   
   <!--
   Provide a clear and concise description of the changes introduced in this PR.
   Ensure the PR description aligns with the code changes, especially after 
updates.
   If applicable, include "Fixes #<GitHub_Issue_ID>" to automatically close the 
corresponding issue
   when the PR is merged.
   -->
   
   Relates to #12743. This is the focused follow-up to [the blocking 
`newRow.put()` review on 
#13578](https://github.com/apache/gluten/pull/13578#pullrequestreview-5894693795)
 and [the follow-up 
acknowledgment](https://github.com/apache/gluten/pull/13578#issuecomment-6859437480).
   
   - Share the existing 500 ms timed-offer/worker-future checks between batch 
submission and end-of-stream signaling in both Delta 3.3 and Delta 4. A failed 
worker now propagates its exception instead of leaving the producer blocked 
indefinitely.
   - Preserve synchronous backpressure, interruptible submission, and ownership 
transfer only after a successful handoff. Rejected batches still release their 
retained reference in `finally`.
   - Extend the existing Velox lifecycle suite with bounded regressions for 
failures **before** submission and **during** a blocked submission, checking 
exception propagation, batch reference counts, producer ownership, and resource 
cleanup. The Delta 4 suite remains the existing Git symlink.
   
   This branch starts directly from upstream `main` at `cb154e189`, which 
includes merged #13578. Task-completion listener ordering and 
worker-before-native-resource cleanup are unchanged; the unbounded shutdown 
wait is deliberately out of scope. No fallback, fixture, configuration, or 
quarantine changes are included. Complementary #13510 also touches the two 
trackers and remains a separate unsupported-statistics-plan fallback change.
   
   ## How was this patch tested?
   
   <!--
   Describe how the changes were tested, if applicable.
   Include new tests to validate the functionality, if necessary.
   For UI-related changes, attach screenshots to demonstrate the updates.
   -->
   
   Actual Maven-backed execution of 
`org.apache.spark.sql.delta.GlutenDeltaStatsLifecycleSuite` in isolated Linux 
source exports under WSL Ubuntu-24.04, using `apache/gluten:centos-9-jdk17`:
   
   | Configuration | Final result | Original blocking implementation |
   | --- | --- | --- |
   | Spark 3.5.5 / Delta 3.3.2 / Scala 2.12 / JDK 17 | 5 passed; none skipped 
or canceled | 3 passed; both new regressions failed at their bounded 30-second 
`newRow` deadline |
   | Spark 4.1.1 / Delta 4.4.1 / Scala 2.13 / JDK 17 | 5 passed; none skipped 
or canceled | 3 passed; both new regressions failed at their bounded 30-second 
`newRow` deadline |
   
   For each negative control, only the production trackers were restored to 
their original implementation. Both test JVMs exited normally rather than 
hanging. Restoring the fix made all five tests pass again, including the 
existing successful-write, aborted-write, and cancellation/registry-lock tests. 
The final tested source blobs match this commit.
   
   Representative commands (both profile sets were built and tested):
   
   ```bash
   ./build/mvn -B -q install -pl backends-velox -am \
     -Pfast-build,backends-velox,spark-3.5,scala-2.12,java-17,delta,spark-ut \
     -Dmaven.compiler.release=17 -DskipTests
   ./build/mvn -B -q test-compile scalatest:test -pl backends-velox \
     -Pfast-build,backends-velox,spark-3.5,scala-2.12,java-17,delta,spark-ut \
     -Dmaven.compiler.release=17 \
     -DwildcardSuites=org.apache.spark.sql.delta.GlutenDeltaStatsLifecycleSuite 
\
     -DargLine=-Dspark.test.home=/opt/shims/spark35/spark_home
   # Repeat with spark-4.1, scala-2.13, and /opt/shims/spark41/spark_home.
   ./dev/format-scala-code.sh
   ./dev/format-scala-code.sh check
   ./.github/workflows/util/check.py header main --fix
   ```
   
   Formatting and license checks passed. Native libraries were downloaded fresh 
from [successful native build 
134590129323](https://github.com/apache/gluten/actions/runs/44241454454/job/134590129323),
 artifact `14400261816`, built at `ad96f33f7` with Velox 
`67fa1bbee62e9f8752b3c34cc92f179022cd2ac6`. The comparison to this branch's 
`cb154e189` base contains only unrelated Bolt/ClickHouse tests, so native 
source/build inputs match. Native libraries were not rebuilt locally. The full 
upstream Delta/Spark test matrix was not run; there are no remaining blockers 
for the focused validation.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   <!--
   If generative AI tooling has been used in the process of authoring this 
patch, please include the
   phrase: 'Generated-by: ' followed by the name of the tool and its version.
   If no, write 'No'.
   Please refer to the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
   -->
   
   Generated-by: GitHub Copilot CLI 1.0.106-8.unstable.r43566476370.g869eef3 
(GPT-6 Astra)


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