Liwei Lin created PARQUET-431:
---------------------------------
Summary: Make ParquetOutputFormat.memoryManager volatile
Key: PARQUET-431
URL: https://issues.apache.org/jira/browse/PARQUET-431
Project: Parquet
Issue Type: Bug
Components: parquet-mr
Affects Versions: 1.8.0, 1.8.1
Reporter: Liwei Lin
Assignee: Liwei Lin
Fix For: 1.9.0
Currently ParquetOutputFormat.getRecordWriter() contains an unsynchronized lazy
initialization of the non-volatile static field *memoryManager*.
Because the compiler or processor may reorder instructions, threads are not
guaranteed to see a completely initialized object, when
ParquetOutputFormat.getRecordWriter() is called by multiple threads.
This ticket proposes to make *memoryManager* volatile to correct the problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)