pitrou opened a new issue, #46710: URL: https://github.com/apache/arrow/issues/46710
### Describe the bug, including details regarding any error messages, version, and platform. The dataset writer currently uses raw pointers of the pieces of state it needs to track, even though some of this state is accessed in async callbacks that might run at arbitrary points in time (especially in the case an error forces an early return of the synchronously running logic). We should strive to strengthen the dataset writer code. Besides making it potentially more robust, it would also make future maintenance and evolutions easier. ### Component(s) C++ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org