[ 
https://issues.apache.org/jira/browse/ARROW-14734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17463796#comment-17463796
 ] 

Antoine Pitrou commented on ARROW-14734:
----------------------------------------

Is it enough to raise the busy wait duration, such as:

{code}
diff --git a/cpp/src/arrow/util/cancel_test.cc 
b/cpp/src/arrow/util/cancel_test.cc
index b9bf94ba4..855749edd 100644
--- a/cpp/src/arrow/util/cancel_test.cc
+++ b/cpp/src/arrow/util/cancel_test.cc
@@ -193,7 +193,7 @@ class SignalCancelTest : public CancelTest {
   }
 
   void AssertStopRequested() {
-    BusyWait(1.0, [&]() { return stop_token_->IsStopRequested(); });
+    BusyWait(5.0, [&]() { return stop_token_->IsStopRequested(); });
     ASSERT_TRUE(stop_token_->IsStopRequested());
     auto st = stop_token_->Poll();
     ASSERT_RAISES(Cancelled, st);
{code}


> [C++][CI] CountingSemaphore sporadic test crash
> -----------------------------------------------
>
>                 Key: ARROW-14734
>                 URL: https://issues.apache.org/jira/browse/ARROW-14734
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Continuous Integration
>            Reporter: Antoine Pitrou
>            Assignee: Weston Pace
>            Priority: Major
>
> This may be a fluke, but this crash appeared on CI:
> https://github.com/apache/arrow/runs/4234285140?check_suite_focus=true#step:8:110
> {code}
> [==========] Running 134 tests from 23 test suites.
> [----------] Global test environment set-up.
> [----------] 7 tests from CancelTest
> [ RUN      ] CancelTest.StopBasics
> [       OK ] CancelTest.StopBasics (0 ms)
> [ RUN      ] CancelTest.StopTokenCopy
> [       OK ] CancelTest.StopTokenCopy (0 ms)
> [ RUN      ] CancelTest.RequestStopTwice
> [       OK ] CancelTest.RequestStopTwice (0 ms)
> [ RUN      ] CancelTest.Unstoppable
> [       OK ] CancelTest.Unstoppable (0 ms)
> [ RUN      ] CancelTest.SourceVanishes
> [       OK ] CancelTest.SourceVanishes (0 ms)
> [ RUN      ] CancelTest.ThreadedPollSuccess
> [       OK ] CancelTest.ThreadedPollSuccess (11 ms)
> [ RUN      ] CancelTest.ThreadedPollCancel
> [       OK ] CancelTest.ThreadedPollCancel (11 ms)
> [----------] 7 tests from CancelTest (23 ms total)
> [----------] 2 tests from SignalCancelTest
> [ RUN      ] SignalCancelTest.Register
> [       OK ] SignalCancelTest.Register (1 ms)
> [ RUN      ] SignalCancelTest.RegisterUnregister
> [       OK ] SignalCancelTest.RegisterUnregister (111 ms)
> [----------] 2 tests from SignalCancelTest (113 ms total)
> [----------] 3 tests from CountingSemaphore
> [ RUN      ] CountingSemaphore.Basic
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to