hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9749) ObjectStore schema verification logic is incorrect
Date Sun, 22 Feb 2015 22:43:11 GMT

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

Brock Noland updated HIVE-9749:
-------------------------------
    Description: 
{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}

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

Mime
View raw message