lidavidm commented on code in PR #39011:
URL: https://github.com/apache/arrow/pull/39011#discussion_r1446789010


##########
java/memory/memory-core/src/test/java/org/apache/arrow/memory/CountingAllocationListener.java:
##########
@@ -58,6 +64,10 @@ public void onAllocation(long size) {
   @Override
   public boolean onFailedAllocation(long size, AllocationOutcome outcome) {
     if (expandOnFail) {
+      if (expandAlloc == null) {

Review Comment:
   Could possibly use Preconditions.checkState for this (since it's been 
annotated such that CheckerFramework should understand it)



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

Reply via email to