szehon-ho edited a comment on pull request #2647:
URL: https://github.com/apache/hive/pull/2647#issuecomment-931909748


   Hi guys sorry for delay, I took a little look at it.  Seems like test fail 
because in test environment TxnHandler is initialized more than once but not 
tearing down when shutdown.  So everytime it makes more connection to database 
and eventually gets exhausted.  Maybe I should just call TxnUtils.getTxnStore() 
instead.
   
   Actually found something else, in current version of Hive it is now on 
critical path of startup, since AcidMetricService is added to list of services 
in https://issues.apache.org/jira/browse/HIVE-24824:
   
   ```
   setConf:369, TxnHandler (org.apache.hadoop.hive.metastore.txn)
   getTxnStore:124, TxnUtils (org.apache.hadoop.hive.metastore.txn)
   setConf:314, AcidMetricService (org.apache.hadoop.hive.metastore.metrics)
   startAlwaysTaskThreads:525, HMSHandler (org.apache.hadoop.hive.metastore)
   init:493, HMSHandler (org.apache.hadoop.hive.metastore)
   invoke0:-1, NativeMethodAccessorImpl (sun.reflect)
   invoke:62, NativeMethodAccessorImpl (sun.reflect)
   invoke:43, DelegatingMethodAccessorImpl (sun.reflect)
   invoke:498, Method (java.lang.reflect)
   invokeInternal:147, RetryingHMSHandler (org.apache.hadoop.hive.metastore)
   invoke:108, RetryingHMSHandler (org.apache.hadoop.hive.metastore)
   <init>:80, RetryingHMSHandler (org.apache.hadoop.hive.metastore)
   getProxy:93, RetryingHMSHandler (org.apache.hadoop.hive.metastore)
   newRetryingHMSHandler:133, HiveMetaStore (org.apache.hadoop.hive.metastore)
   invoke0:-1, NativeMethodAccessorImpl (sun.reflect)
   invoke:62, NativeMethodAccessorImpl (sun.reflect)
   invoke:43, DelegatingMethodAccessorImpl (sun.reflect)
   invoke:498, Method (java.lang.reflect)
   callEmbeddedMetastore:291, HiveMetaStoreClient 
(org.apache.hadoop.hive.metastore)
   <init>:205, HiveMetaStoreClient (org.apache.hadoop.hive.metastore)
   <init>:113, HiveMetaStoreClientWithLocalCache 
(org.apache.hadoop.hive.metastore)
   <init>:155, SessionHiveMetaStoreClient (org.apache.hadoop.hive.ql.metadata)
   newInstance0:-1, NativeConstructorAccessorImpl (sun.reflect)
   newInstance:62, NativeConstructorAccessorImpl (sun.reflect)
   newInstance:45, DelegatingConstructorAccessorImpl (sun.reflect)
   newInstance:423, Constructor (java.lang.reflect)
   newInstance:84, JavaUtils (org.apache.hadoop.hive.metastore.utils)
   <init>:101, RetryingMetaStoreClient (org.apache.hadoop.hive.metastore)
   getProxy:154, RetryingMetaStoreClient (org.apache.hadoop.hive.metastore)
   getProxy:125, RetryingMetaStoreClient (org.apache.hadoop.hive.metastore)
   createMetaStoreClient:5444, Hive (org.apache.hadoop.hive.ql.metadata)
   getMSC:5522, Hive (org.apache.hadoop.hive.ql.metadata)
   getMSC:5502, Hive (org.apache.hadoop.hive.ql.metadata)
   getAllFunctions:5810, Hive (org.apache.hadoop.hive.ql.metadata)
   reloadFunctions:337, Hive (org.apache.hadoop.hive.ql.metadata)
   registerAllFunctionsOnce:316, Hive (org.apache.hadoop.hive.ql.metadata)
   <init>:542, Hive (org.apache.hadoop.hive.ql.metadata)
   create:434, Hive (org.apache.hadoop.hive.ql.metadata)
   getInternal:421, Hive (org.apache.hadoop.hive.ql.metadata)
   get:377, Hive (org.apache.hadoop.hive.ql.metadata)
   createHiveDB:291, BaseSemanticAnalyzer (org.apache.hadoop.hive.ql.parse)
   <init>:269, BaseSemanticAnalyzer (org.apache.hadoop.hive.ql.parse)
   <init>:473, SemanticAnalyzer (org.apache.hadoop.hive.ql.parse)
   postInit:630, QTestUtil (org.apache.hadoop.hive.ql)
   evaluate:88, CliAdapter$1$1 (org.apache.hadoop.hive.cli.control)
   evaluate:20, RunRules (org.junit.rules)
   evaluate:306, ParentRunner$3 (org.junit.runners)
   run:413, ParentRunner (org.junit.runners)
   execute:365, JUnit4Provider (org.apache.maven.surefire.junit4)
   executeWithRerun:273, JUnit4Provider (org.apache.maven.surefire.junit4)
   executeTestSet:238, JUnit4Provider (org.apache.maven.surefire.junit4)
   invoke:159, JUnit4Provider (org.apache.maven.surefire.junit4)
   runSuitesInProcess:377, ForkedBooter (org.apache.maven.surefire.booter)
   execute:138, ForkedBooter (org.apache.maven.surefire.booter)
   run:465, ForkedBooter (org.apache.maven.surefire.booter)
   main:451, ForkedBooter (org.apache.maven.surefire.booter)
   ```
   
   So seems it's a Hive 3 only bug?  FYI @sunchao 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to