You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Brock Noland (JIRA)" <ji...@apache.org> on 2015/02/22 23:45:11 UTC

[jira] [Commented] (HIVE-9749) ObjectStore schema verification logic is incorrect

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

Brock Noland commented on HIVE-9749:
------------------------------------

[~prasadm] - can you review?

> 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)