andygrove commented on code in PR #1485: URL: https://github.com/apache/datafusion-comet/pull/1485#discussion_r1985782286
########## spark/src/main/java/org/apache/spark/shuffle/comet/CometShuffleMemoryAllocator.java: ########## @@ -52,7 +52,7 @@ public static CometShuffleMemoryAllocatorTrait getInstance( (boolean) CometConf$.MODULE$.COMET_COLUMNAR_SHUFFLE_UNIFIED_MEMORY_ALLOCATOR_IN_TEST().get(); - if (!useUnifiedMemAllocator) { + if (isSparkTesting && !useUnifiedMemAllocator) { Review Comment: I think more changes are required here. If `isSparkTesting` is false and `useUnifiedMemAllocator` is also false, we will fall through to the `else` branch, which will throw an exception because off-heap is not enabled. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org