lidavidm commented on a change in pull request #11285:
URL: https://github.com/apache/arrow/pull/11285#discussion_r724133246
##########
File path: cpp/src/arrow/dataset/scanner_test.cc
##########
@@ -1026,6 +1026,14 @@ class TestBackpressure : public ::testing::Test {
return sum;
}
+ void Finish(AsyncGenerator<EnumeratedRecordBatch> gen) {
+ for (const auto& controlled_fragment : controlled_fragments_) {
+ controlled_fragment->Finish();
+ }
+ ASSERT_FINISHES_OK(VisitAsyncGenerator(
+ gen, [](EnumeratedRecordBatch batch) { return Status::OK(); }));
+ }
+
Review comment:
Hmm, I would expect dropping the generator/scanner to clean up
everything. Wonder what's keeping it alive. (Not a problem to solve here.)
--
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]