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:16:00 UTC
[jira] [Created] (ARROW-17996) [C++] Potential race condition in readahead generator
Weston Pace created ARROW-17996:
-----------------------------------
Summary: [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
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)