[
https://issues.apache.org/jira/browse/HIVE-26246?focusedWorklogId=778963&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-778963
]
ASF GitHub Bot logged work on HIVE-26246:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 07/Jun/22 09:46
Start Date: 07/Jun/22 09:46
Worklog Time Spent: 10m
Work Description: zhangbutao commented on code in PR #3304:
URL: https://github.com/apache/hive/pull/3304#discussion_r891009617
##########
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestFilterHooks.java:
##########
@@ -210,6 +225,12 @@ protected void creatEnv(Configuration conf) throws
Exception {
client.dropDatabase(DBNAME1, true, true, true);
client.dropDatabase(DBNAME2, true, true, true);
+ try {
+ client.dropDataConnector(DCNAME1, true, true);
+ client.dropDataConnector(DCNAME2, true, true);
+ } catch (NoSuchObjectException e) {
+ // no op
Review Comment:
When we are dropping dataconnector whch does not exists, this line will
throw NoSuchObjectException though passing ifnotexists argument(true):
https://github.com/apache/hive/blob/cdb1052e24ca493c6486fef3dd8956dde61be834/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java#L2045
If this is a bug, i will fix it in another pr :). thx
Issue Time Tracking
-------------------
Worklog Id: (was: 778963)
Time Spent: 1h 10m (was: 1h)
> Filter out results 'show connectors' on HMS client-side
> ---------------------------------------------------------
>
> Key: HIVE-26246
> URL: https://issues.apache.org/jira/browse/HIVE-26246
> Project: Hive
> Issue Type: Sub-task
> Affects Versions: 4.0.0-alpha-1, 4.0.0-alpha-2
> Reporter: zhangbutao
> Assignee: zhangbutao
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)