[jira] [Comment Edited] (HIVE-18705) Improve HiveMetaStoreClient.dropDatabase

2018-07-13 Thread Adam Szita (JIRA)


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

Adam Szita edited comment on HIVE-18705 at 7/13/18 9:21 AM:


Seems like Sasha's HIVE-20097 went in just before the ptest began to run on my 
Jira and messed up my patch. Rebased and reattached


was (Author: szita):
Seems like Sasha's HIVE-20097 went in before the ptest began to run on my Jira 
and messed up my patch. Rebased and reattached

> Improve HiveMetaStoreClient.dropDatabase
> 
>
> Key: HIVE-18705
> URL: https://issues.apache.org/jira/browse/HIVE-18705
> Project: Hive
>  Issue Type: Improvement
>Reporter: Adam Szita
>Assignee: Adam Szita
>Priority: Major
> Attachments: HIVE-18705.0.patch, HIVE-18705.1.patch, 
> HIVE-18705.10.patch, HIVE-18705.2.patch, HIVE-18705.4.patch, 
> HIVE-18705.5.patch, HIVE-18705.6.patch, HIVE-18705.7.patch, 
> HIVE-18705.8.patch, HIVE-18705.9.patch
>
>
> {{HiveMetaStoreClient.dropDatabase}} has a strange implementation to ensure 
> dealing with client side hooks (for non-native tables e.g. HBase). Currently 
> it starts by retrieving all the tables from HMS, and then sends {{dropTable}} 
> calls to HMS table-by-table. At the end a {{dropDatabase}} just to be sure :) 
> I believe this could be refactored so that it speeds up the dropDB in 
> situations where the average table count per DB is very high.



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


[jira] [Comment Edited] (HIVE-18705) Improve HiveMetaStoreClient.dropDatabase

2018-07-11 Thread Alexander Kolbasov (JIRA)


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

Alexander Kolbasov edited comment on HIVE-18705 at 7/12/18 12:43 AM:
-

[~szita] Can you post reviewboard link?
Also, what commit ID is your patch based on?


was (Author: akolb):
[~szita] Can you post reviewboard link?

Thanks,

- Sasha

> Improve HiveMetaStoreClient.dropDatabase
> 
>
> Key: HIVE-18705
> URL: https://issues.apache.org/jira/browse/HIVE-18705
> Project: Hive
>  Issue Type: Improvement
>Reporter: Adam Szita
>Assignee: Adam Szita
>Priority: Major
> Attachments: HIVE-18705.0.patch, HIVE-18705.1.patch, 
> HIVE-18705.2.patch, HIVE-18705.4.patch, HIVE-18705.5.patch, 
> HIVE-18705.6.patch, HIVE-18705.7.patch, HIVE-18705.8.patch
>
>
> {{HiveMetaStoreClient.dropDatabase}} has a strange implementation to ensure 
> dealing with client side hooks (for non-native tables e.g. HBase). Currently 
> it starts by retrieving all the tables from HMS, and then sends {{dropTable}} 
> calls to HMS table-by-table. At the end a {{dropDatabase}} just to be sure :) 
> I believe this could be refactored so that it speeds up the dropDB in 
> situations where the average table count per DB is very high.



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