You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2022/10/12 01:28:00 UTC

[jira] [Commented] (ARROW-17996) [C++] Potential race condition in readahead generator

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

Weston Pace commented on ARROW-17996:
-------------------------------------

This commit demonstrates the problem fairly easily (if running stress): https://github.com/apache/arrow/compare/master...westonpace:arrow:bugfix/ARROW-17996--race-condition-in-readahead-generator

> [C++] Potential race condition in readahead generator
> -----------------------------------------------------
>
>                 Key: ARROW-17996
>                 URL: https://issues.apache.org/jira/browse/ARROW-17996
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Weston Pace
>            Priority: Major
>
> It is possible for the final future to get marked finished twice.
> Thread 1: Polls the generator, checks finished (false), is about to add a task
> Thread 2: Finishes, marks finished, decrements running tasks to 0
> Thread 1: adds task, immediately finishes, decrements running tasks to 0
> Both threads will attempt to mark the final future finished.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)