felipepessoto commented on PR #13563: URL: https://github.com/apache/gluten/pull/13563#issuecomment-7418451263
> Does this PR involve any user-facing changes? @zhztheplayer Yes. I reproduced this locally on Spark 3.5 and 4.1 with the same [regression test](https://github.com/apache/gluten/blob/9486ea155b16e7599f99a1914adacc34c877e4ae/backends-velox/src/test/scala/org/apache/spark/sql/execution/GlutenJniExceptionSuite.scala#L388-L407): it exhausts a 128 MiB Spark off-heap pool and then runs a Velox `count`. The query fails in both cases; what changes is how callers can identify the failure. **Before:** JNI returned a generic `GlutenException`. Callers had to inspect the message to recognize the OOM. **After:** JNI returns the original `ThrowOnOomMemoryTarget.OutOfMemoryException`. The public iterator can still wrap it in `GlutenException`, but callers can now identify the OOM by type in the cause chain. Memory limits and accounting are unchanged. I've added this comparison and linked the regression test in the PR description. -- 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]
