[
https://issues.apache.org/jira/browse/HIVE-18387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16364388#comment-16364388
]
Hive QA commented on HIVE-18387:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12910483/HIVE-18387.05.patch
{color:red}ERROR:{color} -1 due to build exiting with an error
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/9212/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/9212/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-9212/
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-02-14 16:41:27.348
+ [[ -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-9212/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-02-14 16:41:27.351
+ cd apache-github-source-source
+ git fetch origin
>From https://github.com/apache/hive
b0d3cb4..b98fb1f master -> origin/master
+ git reset --hard HEAD
HEAD is now at b0d3cb4 HIVE-18448: Drop Support For Indexes From Apache Hive
(Zoltan Haindrich reviewed by Ashutosh Chauhan)
+ git clean -f -d
+ git checkout master
Already on 'master'
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
+ git reset --hard origin/master
HEAD is now at b98fb1f HIVE-18604: DropDatabase cascade fails when there is an
index in the DB (Adam Szita, reviewed by Peter Vary)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2018-02-14 16:41:28.667
+ rm -rf ../yetus
+ mkdir ../yetus
+ git gc
+ cp -R . ../yetus
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-9212/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/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java:
does not exist in index
error:
a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java:
does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java: does not exist in
index
error: a/ql/src/java/org/apache/hadoop/hive/ql/QueryLifeTimeHookRunner.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/TaskFactory.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/optimizer/GenMapRedUtils.java:
does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java:
does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseContext.java: does
not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
does not exist in index
error:
a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java:
does not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java: does
not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java: does
not exist in index
error: a/ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java: does
not exist in index
error: a/ql/src/test/queries/clientpositive/druidmini_mv.q: does not exist in
index
error:
a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_4.q: does
not exist in index
error: a/ql/src/test/results/clientpositive/druid/druidmini_mv.q.out: does not
exist in index
error:
a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out:
does not exist in index
error:
a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_4.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/Materialization.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-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/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/RawStore.java:
does not exist in index
error:
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java:
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/DummyRawStoreControlledCommit.java:
does not exist in index
error:
a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java:
does not exist in index
error: ql/src/java/org/apache/hadoop/hive/ql/QueryLifeTimeHookRunner.java: does
not exist in index
error: patch failed:
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:133
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java'
with conflicts.
error:
hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java:
does not exist in index
error:
hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java:
does not exist in index
error: src/java/org/apache/hadoop/hive/ql/ErrorMsg.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/QueryLifeTimeHookRunner.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/TaskFactory.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/optimizer/GenMapRedUtils.java: does
not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java: does
not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/ParseContext.java: does not
exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not
exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java:
does not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java: does not
exist in index
error: src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java: does not
exist in index
error: src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java: does not
exist in index
error: src/test/queries/clientpositive/druidmini_mv.q: does not exist in index
error: src/test/queries/clientpositive/materialized_view_create_rewrite_4.q:
does not exist in index
error: src/test/results/clientpositive/druid/druidmini_mv.q.out: does not exist
in index
error:
src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out: does
not exist in index
error:
src/test/results/clientpositive/materialized_view_create_rewrite_4.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/Materialization.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-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/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/RawStore.java: does not
exist in index
error: src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java:
does not exist in index
error: src/main/thrift/hive_metastore.thrift: does not exist in index
error:
src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java:
does not exist in index
error:
src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java:
does not exist in index
The patch does not appear to apply with p0, p1, or p2
+ exit 1
'
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12910483 - PreCommit-HIVE-Build
> Minimize time that REBUILD locks the materialized view
> ------------------------------------------------------
>
> Key: HIVE-18387
> URL: https://issues.apache.org/jira/browse/HIVE-18387
> 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-18387.01.patch, HIVE-18387.02.patch,
> HIVE-18387.03.patch, HIVE-18387.04.patch, HIVE-18387.05.patch,
> HIVE-18387.patch
>
>
> Currently, REBUILD will block the materialized view while the final move task
> is being executed. The idea for this improvement is to create the new
> materialization in a new folder (new version) and then just flip the pointer
> to the folder in the MV definition in the metastore. REBUILD operations for a
> given MV should get an exclusive lock though, i.e., they cannot be executed
> concurrently.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)