[
https://issues.apache.org/jira/browse/HIVE-9749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lefty Leverenz updated HIVE-9749:
---------------------------------
Labels: TODOC1.2 (was: )
> 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
> Labels: TODOC1.2
> Fix For: 1.2.0
>
> Attachments: HIVE-9749.patch, 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}
> additionally an {{ObjectStore}} object is created for all clients. As such
> we'll also make the verification complete flag static.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)