zhztheplayer commented on a change in pull request #10883:
URL: https://github.com/apache/arrow/pull/10883#discussion_r761698711



##########
File path: 
java/dataset/src/test/java/org/apache/arrow/dataset/file/TestFileSystemDataset.java
##########
@@ -271,28 +281,34 @@ public void 
testErrorThrownWhenIterateOnIteratorAfterTaskClose() throws Exceptio
     NativeScanner scanner = dataset.newScan(options);
     List<? extends NativeScanTask> tasks = collect(scanner.scan());
     NativeScanTask task = tasks.get(0);
-    ScanTask.BatchIterator iterator = task.execute();
+    ArrowReader reader = task.execute();
     task.close();
-    assertThrows(NativeInstanceReleasedException.class, iterator::hasNext);
+    assertThrows(NativeInstanceReleasedException.class, reader::loadNextBatch);
+    AutoCloseables.close(factory);
   }
 
+  // After ARROW-7272: It's no longer possible to perform this check as we 
pre-allocated
+  // container buffers in VectorSchemaRoot
+  @Ignore

Review comment:
       This check is not valid for current reader-based API. As Java C data 
interface doesn't add buffer sizes to the accounting allocator. I think in a 
way that is reasonable for dataset API because the allocator didn't ever 
allocate buffers. So I'd remove this test.




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