Skip to content

Revert "[CORE] Preserve original Java exceptions across JNI (combined reference)" - #13812

Merged
zhztheplayer merged 1 commit into
apache:mainfrom
felipepessoto:revert-13133-felipepessoto-jni-exception-preservation
Nov 26, 2026
Merged

zhztheplayer merged 1 commit into
apache:mainfrom
felipepessoto:revert-13133-felipepessoto-jni-exception-preservation

Conversation

@felipepessoto

Copy link
Copy Markdown
Contributor

Reverts #13133

@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the Velox-specific exception-propagation rollback.

No open issues 🎉

What changed in this PR

Reverts the Velox-specific Java exception propagation changes from #13133, while leaving the core JNI exception-preservation mechanism in place.

Changes:

  • Removes exception wrapping around input and memory callbacks, and exception recovery at the output boundary.
  • Deletes the associated C++ and Scala regression tests and build registrations.
  • Updates documentation to clarify the remaining core JNI contract.
File Description
gluten-ut/​test/​src-velox/​test/​scala/​org/​apache/​spark/​sql/​execution/​GlutenJniExceptionSuite.scala Deletes JNI exception-preservation integration tests.
gluten-ut/​test/​pom.xml Removes Velox-specific test-source and style-check configuration.
gluten-ut/​spark35/​src-delta/​test/​scala/​org/​apache/​spark/​sql/​execution/​datasources/​GlutenDeltaNativeConstraintSuite.scala Deletes native Delta constraint exception tests.
docs/​developers/​NewToGluten.md Clarifies core-only guarantees and removes reverted test documentation.
cpp/​velox/​tests/​VeloxJavaExceptionTest.cc Deletes Velox exception-propagation unit tests.
cpp/​velox/​tests/​CMakeLists.txt Removes the deleted C++ test target.
cpp/​velox/​operators/​plannodes/​RowVectorStream.cc Restores direct input iterator callbacks.
cpp/​velox/​operators/​plannodes/​CudfVectorStream.cc Restores direct GPU input iterator callbacks.
cpp/​velox/​memory/​VeloxMemoryManager.cc Removes the exception-wrapping allocation listener.
cpp/​velox/​jni/​VeloxJavaException.h Deletes Velox exception wrapping and recovery helpers.
cpp/​velox/​compute/​WholeStageResultIterator.cc Removes Java exception recovery around output and lazy-vector loading.

Review effort: Balanced

@zhztheplayer
zhztheplayer merged commit b2ba829 into apache:main Nov 26, 2026
40 of 44 checks passed
@felipepessoto
felipepessoto deleted the revert-13133-felipepessoto-jni-exception-preservation branch November 26, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core DOCS VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants