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)