[ 
https://issues.apache.org/jira/browse/PARQUET-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julien Le Dem resolved PARQUET-431.
-----------------------------------
    Resolution: Fixed

Issue resolved by pull request 313
[https://github.com/apache/parquet-mr/pull/313]

> 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)

Reply via email to