Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-790

race condition related to ScriptOperator + UnionOperator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      ScriptOperator uses a second thread to output the rows to the children operators. In a corner case which contains a union, 2 threads might be outputting data into the same operator hierarchy and caused race conditions.

      CREATE TABLE tablea (cola STRING);
      SELECT *
      FROM (
          SELECT TRANSFORM(cola)
          USING 'cat'
          AS cola
          FROM tablea
        UNION ALL
          SELECT cola as cola
          FROM tablea
      ) a;
      

        Attachments

        1. Hive_790_0.4.0.patch
          18 kB
          Ning Zhang
        2. Hive-790_4.patch
          19 kB
          Ning Zhang
        3. Hive-790_3.patch
          12 kB
          Ning Zhang
        4. Hive-790_2.patch
          12 kB
          Ning Zhang
        5. Hive-790.patch
          11 kB
          Ning Zhang

          Activity

            People

            • Assignee:
              nzhang Ning Zhang
              Reporter:
              zshao Zheng Shao
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: