mpimenov opened a new issue, #40068: URL: https://github.com/apache/arrow/issues/40068
### Describe the bug, including details regarding any error messages, version, and platform. The first and the last line of this block of code access the same ```metadata``` variable but only one of them does so holding a lock. I assume this means the other one should too. There are some other places in this file that access metadata in tricky ways (e.g. it is not clear from a first glance at a method whether nullptr is allowed or not). They could also race. https://github.com/apache/arrow/blob/0dbbd43ca9133912d1809394727784560cc5e797/cpp/src/arrow/dataset/file_parquet.cc#L607-L618 ### Component(s) C++, Parquet -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
