[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aihua Xu updated HIVE-19203: Resolution: Fixed Fix Version/s: 4.0.0 Status: Resolved (was: Patch Available) Pushed to master. Thanks Alice for the work. > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > Fix For: 4.0.0 > > Attachments: HIVE-19203.1.patch > > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alice Fan updated HIVE-19203: - Attachment: HIVE-19203.1.patch > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > Attachments: HIVE-19203.1.patch > > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alice Fan updated HIVE-19203: - Attachment: (was: HIVE-19203.1.patch) > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alice Fan updated HIVE-19203: - Attachment: (was: HIVE-19203.1.patch) > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > Attachments: HIVE-19203.1.patch > > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alice Fan updated HIVE-19203: - Attachment: HIVE-19203.1.patch > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > Attachments: HIVE-19203.1.patch > > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (HIVE-19203) Thread-Safety Issue in HiveMetaStore
[ https://issues.apache.org/jira/browse/HIVE-19203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alice Fan updated HIVE-19203: - Attachment: HIVE-19203.1.patch Status: Patch Available (was: Open) Changed nextSerialNum to AtomicInteger. > Thread-Safety Issue in HiveMetaStore > > > Key: HIVE-19203 > URL: https://issues.apache.org/jira/browse/HIVE-19203 > Project: Hive > Issue Type: Bug > Components: Metastore >Affects Versions: 3.0.0 >Reporter: BELUGA BEHR >Assignee: Alice Fan >Priority: Minor > Attachments: HIVE-19203.1.patch > > > [https://github.com/apache/hive/blob/550d1e1196b7c801c572092db974a459aac6c249/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L345-L351] > {code:java} > private static int nextSerialNum = 0; > private static ThreadLocal threadLocalId = new > ThreadLocal() { > @Override > protected Integer initialValue() { > return nextSerialNum++; > } > };{code} > > {{nextSerialNum}} needs to be an atomic value. -- This message was sent by Atlassian JIRA (v7.6.3#76005)