[ 
https://issues.apache.org/jira/browse/HIVE-16555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007063#comment-16007063
 ] 

Alan Gates commented on HIVE-16555:
-----------------------------------

I think there's a race condition in HiveMetaStore between when you check the 
UUID and when you set it.  getMetastoreDBUuid calls getGuidFromDB and if that 
returns null, then it calls createDbGuidAndPersist which blindly writes a new 
UUID.  But these are called in separate transactions, so another server could 
set the UUID in between and the code wouldn't detect it.

Also, in hive_metastore.thrift you create a new structure MetastoreDBProperty 
but you don't seem to use it anywhere in the thrift interface.

> Add a new thrift API call for get_metastore_uuid
> ------------------------------------------------
>
>                 Key: HIVE-16555
>                 URL: https://issues.apache.org/jira/browse/HIVE-16555
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Metastore
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>         Attachments: HIVE-16555.01.patch, HIVE-16555.02.patch, 
> HIVE-16555.03.patch, HIVE-16555.04.patch, HIVE-16555.05.patch, 
> HIVE-16555.06.patch, HIVE-16555.07.patch
>
>
> Sub-task of the main JIRA to add the new thrift API



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to