[
https://issues.apache.org/jira/browse/HIVE-26701?focusedWorklogId=828297&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-828297
]
ASF GitHub Bot logged work on HIVE-26701:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Nov/22 10:12
Start Date: 23/Nov/22 10:12
Worklog Time Spent: 10m
Work Description: nrg4878 commented on code in PR #3773:
URL: https://github.com/apache/hive/pull/3773#discussion_r1030250111
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java:
##########
@@ -251,11 +277,14 @@ private static PersistenceManagerFactory
initPMF(Configuration conf, boolean for
if (dsp == null) {
pmf = JDOHelper.getPersistenceManagerFactory(dsProp);
} else {
- try {
+ String sourceName = forCompactor ? "objectstore-compactor" :
"objectstore";
+ try (DataSourceProvider.DataSourceNameConfigurator configurator =
+ new DataSourceProvider.DataSourceNameConfigurator(conf,
sourceName)) {
Review Comment:
Thanks for the clarification. Looks great.
Issue Time Tracking
-------------------
Worklog Id: (was: 828297)
Time Spent: 1.5h (was: 1h 20m)
> Enable metrics for Database connection pools(1 & 2) used by ObjectStore in HMS
> ------------------------------------------------------------------------------
>
> Key: HIVE-26701
> URL: https://issues.apache.org/jira/browse/HIVE-26701
> Project: Hive
> Issue Type: Bug
> Components: Standalone Metastore
> Reporter: Taraka Rama Rao Lethavadla
> Assignee: Zhihua Deng
> Priority: Major
> Labels: hive-4.0.0-must, pull-request-available
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> We have metrics enabled for database connection pools(3 & 4) used in
> TxnHandler. We don't have the same for pools(1 & 2) used by ObjectStore
--
This message was sent by Atlassian Jira
(v8.20.10#820010)