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

Brock Noland updated HIVE-9749:
-------------------------------
    Attachment: HIVE-9749.patch

> ObjectStore schema verification logic is incorrect
> --------------------------------------------------
>
>                 Key: HIVE-9749
>                 URL: https://issues.apache.org/jira/browse/HIVE-9749
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.14.0, 0.13.1, 1.0.0, 1.1.0
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>         Attachments: HIVE-9749.patch
>
>
> Specifically when the versions are the same, we still try and record a new 
> version:
> {code}
>       // metastore schema version is different than Hive distribution needs
>       if (strictValidation) {
>         if 
> (!schemaVer.equalsIgnoreCase(MetaStoreSchemaInfo.getHiveSchemaVersion())) {
>           throw new MetaException("Hive Schema version "
>               + MetaStoreSchemaInfo.getHiveSchemaVersion() +
>               " does not match metastore's schema version " + schemaVer +
>               " Metastore is not upgraded or corrupt");
>         } else {
>           LOG.warn("Metastore version was " + schemaVer + " " +
>               HiveConf.ConfVars.METASTORE_SCHEMA_VERIFICATION.toString() +
>               " is not enabled so recording the new schema version " +
>               MetaStoreSchemaInfo.getHiveSchemaVersion());
>           
> setMetaStoreSchemaVersion(MetaStoreSchemaInfo.getHiveSchemaVersion(),
>               "Set by MetaStore");
>         }
> {code}



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

Reply via email to