cyb70289 commented on a change in pull request #10602:
URL: https://github.com/apache/arrow/pull/10602#discussion_r659489752



##########
File path: cpp/src/arrow/util/async_generator_test.cc
##########
@@ -1095,40 +1095,51 @@ TEST(TestAsyncUtil, ReadaheadMove) {
 TEST(TestAsyncUtil, ReadaheadFailed) {
   ASSERT_OK_AND_ASSIGN(auto thread_pool, internal::ThreadPool::Make(4));
   std::atomic<int32_t> counter(0);
+  std::mutex mx;
+  bool error_unlocked = false;

Review comment:
       Is it possible to make this test simpler?
   I think this test is to verify failed readahead is detected, and won't 
interfere with successful readaheads.
   Can we keep original code, with minor changes to make sure `counter` is 
incrementing till `IterationEnd`, but allow `counter` to be large?




-- 
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...@arrow.apache.org

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


Reply via email to