Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-431

Make ParquetOutputFormat.memoryManager volatile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 1.8.1
    • Fix Version/s: 1.9.0, 1.8.2
    • Component/s: parquet-mr
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              proflin Liwei Lin(Inactive)
              Reporter:
              proflin Liwei Lin(Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: