rymurr commented on a change in pull request #7619:
URL: https://github.com/apache/arrow/pull/7619#discussion_r452076262



##########
File path: 
java/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java
##########
@@ -109,7 +109,8 @@ static AllocationManagerType 
getDefaultAllocationManagerType() {
       field.setAccessible(true);
       return (AllocationManager.Factory) field.get(null);
     } catch (Exception e) {
-      throw new RuntimeException("Unable to instantiate Allocation Manager for 
" + clazzName, e);
+      throw new RuntimeException("No DefaultAllocationManager found on 
classpath. Can't allocate Arrow buffers." +
+          " Please consider adding arrow-memory-netty or arrow-memory-unsafe 
as a dependency.");

Review comment:
       good idea @BryanCutler that is much cleaner. Fixed




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to