[
https://issues.apache.org/jira/browse/HIVE-23813?focusedWorklogId=456067&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456067
]
ASF GitHub Bot logged work on HIVE-23813:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jul/20 12:11
Start Date: 08/Jul/20 12:11
Worklog Time Spent: 10m
Work Description: kgyrtkirk commented on a change in pull request #1223:
URL: https://github.com/apache/hive/pull/1223#discussion_r451486233
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ReplicationMetricsMaintTask.java
##########
@@ -63,13 +63,12 @@ public void run() {
if (!MetastoreConf.getBoolVar(conf, ConfVars.SCHEDULED_QUERIES_ENABLED))
{
Review comment:
please correct the comment in `initialDelay` method as well
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ReplicationMetricsMaintTask.java
##########
@@ -63,13 +63,12 @@ public void run() {
if (!MetastoreConf.getBoolVar(conf, ConfVars.SCHEDULED_QUERIES_ENABLED))
{
Review comment:
I think this class should depend on a different config knob
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/metric/MetricSink.java
##########
@@ -121,6 +121,7 @@ public void run() {
ObjectMapper mapper = new ObjectMapper();
Review comment:
is this method supposed to be fast? (because `ArrayList` was created for
a specified size)
...anyway try not to throw away `ObjectMapper` instances right after use -
`ObjectMapper`'s first time use cost could be high
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ReplicationMetricsMaintTask.java
##########
@@ -63,13 +63,12 @@ public void run() {
if (!MetastoreConf.getBoolVar(conf, ConfVars.SCHEDULED_QUERIES_ENABLED))
{
return;
}
- LOG.debug("Cleaning up older Metrics");
RawStore ms = HiveMetaStore.HMSHandler.getMSForConf(conf);
- int maxRetainSecs = (int)
TimeUnit.DAYS.toSeconds(MetastoreConf.getTimeVar(conf,
- ConfVars.REPL_METRICS_MAX_AGE, TimeUnit.DAYS));
+ int maxRetainSecs = (int) MetastoreConf.getTimeVar(conf,
ConfVars.REPL_METRICS_MAX_AGE, TimeUnit.SECONDS);
+ LOG.info("Cleaning up Metrics older than {} ", maxRetainSecs);
int deleteCnt = ms.deleteReplicationMetrics(maxRetainSecs);
if (deleteCnt > 0L){
Review comment:
nit: space before `{`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 456067)
Time Spent: 40m (was: 0.5h)
> Fix Flaky tests due to JDO ConnectionException
> ----------------------------------------------
>
> Key: HIVE-23813
> URL: https://issues.apache.org/jira/browse/HIVE-23813
> Project: Hive
> Issue Type: Task
> Reporter: Aasha Medhi
> Assignee: Aasha Medhi
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-23813.01.patch
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)