You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/03/15 12:29:00 UTC

[jira] [Resolved] (ARROW-11942) [C++] If tasks are submitted quickly the thread pool may fail to spin up new threads

     [ https://issues.apache.org/jira/browse/ARROW-11942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou resolved ARROW-11942.
------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 9684
[https://github.com/apache/arrow/pull/9684]

> [C++] If tasks are submitted quickly the thread pool may fail to spin up new threads
> ------------------------------------------------------------------------------------
>
>                 Key: ARROW-11942
>                 URL: https://issues.apache.org/jira/browse/ARROW-11942
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Weston Pace
>            Assignee: Weston Pace
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Probably only really affects unit tests.  Consider an idle thread pool with 1 thread (ready_count_ == 1).  If `Spawn` is called very quickly it may look like `ready_count_` is still greater than 0 (because `ready_count_` doesn't necessarily decrement by the time `Spawn` returns) and so it will not spin up new threads.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)