[
https://issues.apache.org/jira/browse/HIVE-18457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16329805#comment-16329805
]
Hive QA commented on HIVE-18457:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12906479/HIVE-18457.01.patch
{color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 16 failed/errored test(s), 11624 tests
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[auto_join25] (batchId=72)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[ppd_join5] (batchId=35)
org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[llap_smb]
(batchId=151)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[bucket_map_join_tez1]
(batchId=170)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[insert_values_orig_table_use_metadata]
(batchId=165)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid]
(batchId=169)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid_fast]
(batchId=160)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[resourceplan]
(batchId=163)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sysdb]
(batchId=160)
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[authorization_part]
(batchId=94)
org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[ppd_join5]
(batchId=121)
org.apache.hadoop.hive.ql.io.TestDruidRecordWriter.testWrite (batchId=254)
org.apache.hadoop.hive.ql.parse.TestParseNegativeDriver.testCliDriver[wrong_distinct2]
(batchId=245)
org.apache.hive.jdbc.TestSSL.testConnectionMismatch (batchId=232)
org.apache.hive.jdbc.TestSSL.testConnectionWrongCertCN (batchId=232)
org.apache.hive.jdbc.TestSSL.testMetastoreConnectionWrongCertCN (batchId=232)
{noformat}
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/8664/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/8664/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-8664/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 16 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12906479 - PreCommit-HIVE-Build
> improve show plan output (triggers, mappings)
> ---------------------------------------------
>
> Key: HIVE-18457
> URL: https://issues.apache.org/jira/browse/HIVE-18457
> Project: Hive
> Issue Type: Sub-task
> Affects Versions: 3.0.0
> Reporter: Prasanth Jayachandran
> Assignee: Sergey Shelukhin
> Priority: Major
> Attachments: HIVE-18457.01.patch, HIVE-18457.patch
>
>
> Did the following sequence to add triggers to UNMANAGED. I can see the
> triggers added to metastore by IS_IN_UNAMANGED flag is not set in metastore.
> Also show resource plans does not show triggers in unmanaged pool.
> {code}
> 0: jdbc:hive2://localhost:10000> show resource plans;
> +----------+----------+--------------------+
> | rp_name | status | query_parallelism |
> +----------+----------+--------------------+
> | global | ACTIVE | NULL |
> | llap | ENABLED | NULL |
> +----------+----------+--------------------+
> 0: jdbc:hive2://localhost:10000>ALTER RESOURCE PLAN llap ACTIVATE;
> 0: jdbc:hive2://localhost:10000>ALTER RESOURCE PLAN global DISABLE;
> 0: jdbc:hive2://localhost:10000>CREATE TRIGGER global.highly_parallel WHEN
> TOTAL_TASKS > 40 DO KILL;
> 0: jdbc:hive2://localhost:10000>ALTER TRIGGER global.highly_parallel ADD TO
> UNMANAGED;
> 0: jdbc:hive2://localhost:10000>CREATE TRIGGER global.big_hdfs_read WHEN
> HDFS_BYTES_READ > 3000000000 DO KILL;
> 0: jdbc:hive2://localhost:10000>ALTER TRIGGER global.big_hdfs_read ADD TO
> UNMANAGED;
> 0: jdbc:hive2://localhost:10000>CREATE TRIGGER global.slow_query WHEN
> EXECUTION_TIME > 100000 DO KILL;
> 0: jdbc:hive2://localhost:10000>ALTER TRIGGER global.slow_query ADD TO
> UNMANAGED;
> 0: jdbc:hive2://localhost:10000>CREATE TRIGGER global.some_spills WHEN
> SPILLED_RECORDS > 10 DO KILL;
> 0: jdbc:hive2://localhost:10000>ALTER TRIGGER global.some_spills ADD TO
> UNMANAGED;
> 0: jdbc:hive2://localhost:10000>ALTER RESOURCE PLAN global ENABLE;
> 0: jdbc:hive2://localhost:10000>ALTER RESOURCE PLAN global ACTIVATE;
> 0: jdbc:hive2://localhost:10000> show resource plan global;
> +----------------------------------------------------+
> | line |
> +----------------------------------------------------+
> | global[status=ACTIVE,parallelism=null,defaultPool=default] |
> | default[allocFraction=1.0,schedulingPolicy=null,parallelism=4] |
> +----------------------------------------------------+
> {code}
> {code:title=mysql}
> mysql> select * from wm_trigger;
> +------------+-------+-----------------+------------------------------+-------------------+-----------------+
> | TRIGGER_ID | RP_ID | NAME | TRIGGER_EXPRESSION |
> ACTION_EXPRESSION | IS_IN_UNMANAGED |
> +------------+-------+-----------------+------------------------------+-------------------+-----------------+
> | 29 | 1 | highly_parallel | TOTAL_TASKS > 40 | KILL
> | |
> | 33 | 1 | big_hdfs_read | HDFS_BYTES_READ > 3000000000 | KILL
> | |
> | 34 | 1 | slow_query | EXECUTION_TIME > 100000 | KILL
> | |
> | 35 | 1 | some_spills | SPILLED_RECORDS > 10 | KILL
> | |
> +------------+-------+-----------------+------------------------------+-------------------+-----------------+
> {code}
> From the above mysql table, IS_IN_UNMANAGED is not set and 'show resource
> plan global' is not showing triggers defined in unmanaged pool.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)