You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "QuakeWang (via GitHub)" <gi...@apache.org> on 2026/06/09 07:53:12 UTC
[PR] Guard JNI native calls against Rust panics [paimon-vector-index]
QuakeWang opened a new pull request, #21:
URL: https://github.com/apache/paimon-vector-index/pull/21
JNI exported native entrypoints currently call Rust core directly. Explicit `io::Result` failures are converted to Java exceptions, but Rust panics can still cross the JNI FFI boundary and abort the JVM.
This PR adds a shared JNI panic boundary around all IVF-PQ and IVF-FLAT native entrypoints. Panics are caught with `catch_unwind` and converted into `RuntimeException`, preserving the Java-side failure contract.
It also adds a JNI panic-boundary smoke test and runs it in CI to verify that representative Rust panics become Java exceptions and the JVM remains usable afterward.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Guard JNI native calls against Rust panics [paimon-vector-index]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #21:
URL: https://github.com/apache/paimon-vector-index/pull/21#issuecomment-4660322859
+1
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Guard JNI native calls against Rust panics [paimon-vector-index]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #21:
URL: https://github.com/apache/paimon-vector-index/pull/21
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org