[jira] [Updated] (HIVE-10619) Fix ConcurrentHashMap.get in MetadataListStructObjectInspector.getInstance (52)

2015-05-06 Thread Alexander Pivovarov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-10619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Pivovarov updated HIVE-10619:
---
Attachment: HIVE-10619.1.patch

reattaching patch #1

 Fix ConcurrentHashMap.get in MetadataListStructObjectInspector.getInstance 
 (52)
 ---

 Key: HIVE-10619
 URL: https://issues.apache.org/jira/browse/HIVE-10619
 Project: Hive
  Issue Type: Bug
  Components: Serializers/Deserializers
Reporter: Alexander Pivovarov
Assignee: Alexander Pivovarov
Priority: Minor
 Attachments: HIVE-10619.1.patch, rb33878.patch


 cached.get(columnNames) should be replaced with cached.get(key) in the code 
 block below
 {code}
   cached = new ConcurrentHashMapListListString, 
 MetadataListStructObjectInspector();
   public static MetadataListStructObjectInspector getInstance(
   ListString columnNames) {
 ArrayListListString key = new ArrayListListString(1);
 key.add(columnNames);
 MetadataListStructObjectInspector result = cached.get(columnNames);
 {code}



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


[jira] [Updated] (HIVE-10619) Fix ConcurrentHashMap.get in MetadataListStructObjectInspector.getInstance (52)

2015-05-05 Thread Alexander Pivovarov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-10619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Pivovarov updated HIVE-10619:
---
Attachment: rb33878.patch

patch #1

 Fix ConcurrentHashMap.get in MetadataListStructObjectInspector.getInstance 
 (52)
 ---

 Key: HIVE-10619
 URL: https://issues.apache.org/jira/browse/HIVE-10619
 Project: Hive
  Issue Type: Bug
  Components: Serializers/Deserializers
Reporter: Alexander Pivovarov
Assignee: Alexander Pivovarov
Priority: Minor
 Attachments: rb33878.patch


 cached.get(columnNames) should be replaced with cached.get(key) in the code 
 block below
 {code}
   cached = new ConcurrentHashMapListListString, 
 MetadataListStructObjectInspector();
   public static MetadataListStructObjectInspector getInstance(
   ListString columnNames) {
 ArrayListListString key = new ArrayListListString(1);
 key.add(columnNames);
 MetadataListStructObjectInspector result = cached.get(columnNames);
 {code}



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