Commits


Gang Wu authored and GitHub committed 0d9d132e914
GH-33655: [C++][Parquet] Fix occasional failure in TestArrowReadWrite.MultithreadedWrite (#33739) ### Rationale for this change This [commit](https://github.com/apache/arrow/commit/c8d6110a26c41966e539e9fa2f5cb8c31dc2f0fe) implements parallel column writing in the parquet writer. However, occasional test failure was observed from unit test `TestArrowReadWrite.MultithreadedWrite`. The root cause is an unintentional call of the copy constructor of `ArrowWriteContext` which results in the buffer sharing across all threads. ### What changes are included in this PR? This issue is fixed by inserting each context individually to avoid sharing buffers. ### Are these changes tested? This issue was observed by occasional `TestArrowReadWrite.MultithreadedWrite`. Make sure the test is recovered. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Yibo Cai <yibo.cai@arm.com>