You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zhihua Deng (Jira)" <ji...@apache.org> on 2024/11/05 01:23:00 UTC

[jira] [Resolved] (HIVE-28460) Determine the database type once the PersistenceManagerFactory created

     [ https://issues.apache.org/jira/browse/HIVE-28460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihua Deng resolved HIVE-28460.
--------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Fix has been merged. Thank you for the review [~dkuzmenko], [~difin]!

> Determine the database type once the PersistenceManagerFactory created
> ----------------------------------------------------------------------
>
>                 Key: HIVE-28460
>                 URL: https://issues.apache.org/jira/browse/HIVE-28460
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> Upon ObjectStore initialization, we need to determine which type of underlying db is by asking the connection the product name. It's a waste of time and resource to do this, as long as we don't change the database connection information, the db type shouldn't be changed, sometimes retrieving the connection for the secondary connection pool(which size is 2) could be time cost, which can lead to HiveMetastoreClient taking much time to connect to the Metastore.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)