You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2018/03/25 17:05:00 UTC

[jira] [Commented] (HIVE-19027) Make materializations invalidation cache work with multiple active remote metastores

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

Hive QA commented on HIVE-19027:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12916004/HIVE-19027.01.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/9824/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/9824/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-9824/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ date '+%Y-%m-%d %T.%3N'
2018-03-25 17:02:33.261
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-9824/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2018-03-25 17:02:33.264
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 5b222db HIVE-18953 : Implement CHECK constraint (Vineet Garg via Ashutosh Chauhan)
+ git clean -f -d
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 5b222db HIVE-18953 : Implement CHECK constraint (Vineet Garg via Ashutosh Chauhan)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2018-03-25 17:02:34.571
+ rm -rf ../yetus_PreCommit-HIVE-Build-9824
+ mkdir ../yetus_PreCommit-HIVE-Build-9824
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-9824
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-9824/yetus
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
error: a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: does not exist in index
error: a/metastore/scripts/upgrade/derby/048-HIVE-14498.derby.sql: does not exist in index
error: a/metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql: does not exist in index
error: a/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql: does not exist in index
error: a/metastore/scripts/upgrade/mssql/033-HIVE-14498.mssql.sql: does not exist in index
error: a/metastore/scripts/upgrade/mysql/048-HIVE-14498.mysql.sql: does not exist in index
error: a/metastore/scripts/upgrade/oracle/048-HIVE-14498.oracle.sql: does not exist in index
error: a/metastore/scripts/upgrade/postgres/047-HIVE-14498.postgres.sql: does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java: does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java: does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/exec/MaterializedViewTask.java: does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java: does not exist in index
error: a/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java: does not exist in index
error: a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_time_window.q: does not exist in index
error: a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_time_window.q.out: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb: does not exist in index
error: a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationInvalidationInfo.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationsCacheCleanerTask.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationsInvalidationCache.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MCreationMetadata.java: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java: does not exist in index
error: a/standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql: does not exist in index
error: a/standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql: does not exist in index
error: a/standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql: does not exist in index
error: a/standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql: does not exist in index
error: a/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql: does not exist in index
error: a/standalone-metastore/src/main/thrift/hive_metastore.thrift: does not exist in index
error: a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/TestMetaStoreMaterializationsCacheCleaner.java: does not exist in index
error: patch failed: standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp:1240
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp:18828
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java:350
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java:1
error: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java: patch does not apply
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java:1119
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java:35852
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java:755
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java:346
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java:346
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java:441
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php:13660
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php:22011
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py:14371
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py' with conflicts.
error: patch failed: standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py:15620
Falling back to three-way merge...
Applied patch to 'standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py' with conflicts.
error: src/java/org/apache/hadoop/hive/conf/HiveConf.java: does not exist in index
error: scripts/upgrade/derby/048-HIVE-14498.derby.sql: does not exist in index
error: scripts/upgrade/derby/hive-schema-3.0.0.derby.sql: does not exist in index
error: scripts/upgrade/hive/hive-schema-3.0.0.hive.sql: does not exist in index
error: scripts/upgrade/mssql/033-HIVE-14498.mssql.sql: does not exist in index
error: scripts/upgrade/mysql/048-HIVE-14498.mysql.sql: does not exist in index
error: scripts/upgrade/oracle/048-HIVE-14498.oracle.sql: does not exist in index
error: scripts/upgrade/postgres/047-HIVE-14498.postgres.sql: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/Driver.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/exec/MaterializedViewTask.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java: does not exist in index
error: src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java: does not exist in index
error: src/test/queries/clientpositive/materialized_view_create_rewrite_time_window.q: does not exist in index
error: src/test/results/clientpositive/materialized_view_create_rewrite_time_window.q.out: does not exist in index
error: src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: does not exist in index
error: src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: does not exist in index
error: src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: does not exist in index
error: src/gen/thrift/gen-cpp/hive_metastore_types.cpp: does not exist in index
error: src/gen/thrift/gen-cpp/hive_metastore_types.h: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java: does not exist in index
error: src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php: does not exist in index
error: src/gen/thrift/gen-php/metastore/Types.php: does not exist in index
error: src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: does not exist in index
error: src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: does not exist in index
error: src/gen/thrift/gen-py/hive_metastore/ttypes.py: does not exist in index
error: src/gen/thrift/gen-rb/hive_metastore_types.rb: does not exist in index
error: src/gen/thrift/gen-rb/thrift_hive_metastore.rb: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/MaterializationInvalidationInfo.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/MaterializationsCacheCleanerTask.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/MaterializationsInvalidationCache.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/model/MCreationMetadata.java: does not exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java: does not exist in index
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12916004 - PreCommit-HIVE-Build

> Make materializations invalidation cache work with multiple active remote metastores
> ------------------------------------------------------------------------------------
>
>                 Key: HIVE-19027
>                 URL: https://issues.apache.org/jira/browse/HIVE-19027
>             Project: Hive
>          Issue Type: Improvement
>          Components: Materialized views
>    Affects Versions: 3.0.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Major
>         Attachments: HIVE-19027.01.patch
>
>
> The main points:
>  - Only MVs stored in transactional tables can have a time window value of 0. Those are the only MVs that can be guaranteed to not be outdated when a query is executed, if we use custom storage handlers to store the materialized view, we cannot make any promises.
>  - For MVs that +cannot be outdated+, we do not check the metastore. Instead, comparison is based on valid write id lists.
>  - For MVs that +can be outdated+, we still rely on the invalidation cache.
>  ** The window for valid outdated MVs can be specified in intervals of 1 minute (less than that, it is difficult to have any guarantees about whether the MV is actually outdated by less than a minute or not).
>  ** The async loading is done every interval / 2 (or probably better, we can make it configurable).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)