BELUGA BEHR created HIVE-19203:

             Summary: Thread-Safety Issue in HiveMetaStore
                 Key: HIVE-19203
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 3.0.0
            Reporter: BELUGA BEHR

private static int nextSerialNum = 0;
private static ThreadLocal<Integer> threadLocalId = new ThreadLocal<Integer>() {
  protected Integer initialValue() {
    return nextSerialNum++;

{{nextSerialNum}} needs to be an atomic value.

This message was sent by Atlassian JIRA

Reply via email to