Gopal V created HIVE-12758:
------------------------------

             Summary: Parallel compilation: Operator::resetId() is not 
thread-safe
                 Key: HIVE-12758
                 URL: https://issues.apache.org/jira/browse/HIVE-12758
             Project: Hive
          Issue Type: Bug
          Components: Physical Optimizer
    Affects Versions: 2.0.0, 2.1.0
            Reporter: Gopal V
            Priority: Critical


{code}
  private static AtomicInteger seqId;
...

  public Operator() {
    this(String.valueOf(seqId.getAndIncrement()));
  }

  public static void resetId() {
    seqId.set(0);
  }
{code}

Potential race-condition.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to