Weston Pace created ARROW-12207:
-----------------------------------

             Summary: [C++] Add automatic detection of "abandoned" futures
                 Key: ARROW-12207
                 URL: https://issues.apache.org/jira/browse/ARROW-12207
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Weston Pace


The future contract currently requires that the producer always mark a future 
finished (not necessarily successfully).  Either through bugs or a 
misunderstanding of the contract it's possible a producer fails to do so.  This 
can lead to a memory leak or potentially a deadlock (if 
arrow::internal::RunSerially is merged).

 

Apache Mesos avoids this by splitting the "Future" class into a producer facing 
class (named Promise) and a consumer facing class.  If all references to a 
Promise are lost then the future is marked abandoned (e.g. invalid status).



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

Reply via email to