Rajesh Balamohan created HIVE-24960:
---------------------------------------
Summary: HMS: Fix initial delay of housekeeping threads in HMS
Key: HIVE-24960
URL: https://issues.apache.org/jira/browse/HIVE-24960
Project: Hive
Issue Type: Improvement
Components: Metastore
Reporter: Rajesh Balamohan
HMS starts house keeping threads in background. However, its initial delay is
set to the frequency mentioned in MetastoreTaskThread.
[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L761]
For e.g, "hive.hook.proto.events.clean.freq" defaults to "1D" and the cleaner
starts its initial iteration after a day. For frequently stopped/started
clusters in cloud, this will not be ideal.
It will be good to introduce small random delay for the initial scheduling of
these threads.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)