[ https://issues.apache.org/jira/browse/HIVE-25596?focusedWorklogId=676235&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-676235 ]
ASF GitHub Bot logged work on HIVE-25596: ----------------------------------------- Author: ASF GitHub Bot Created on: 04/Nov/21 07:23 Start Date: 04/Nov/21 07:23 Worklog Time Spent: 10m Work Description: pkumarsinha commented on a change in pull request #2724: URL: https://github.com/apache/hive/pull/2724#discussion_r742587136 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/repl/metric/ReplicationMetricCollector.java ########## @@ -105,6 +110,21 @@ public void reportFailoverStart(String stageName, Map<String, Long> metricMap, } } + private void checkRMProgressLimit(Progress progress, Stage stage) throws SemanticException { + MessageSerializer serializer = MessageFactory.getDefaultInstanceForReplMetrics(conf).getSerializer(); + ObjectMapper mapper = new ObjectMapper(); + String serializedProgress = null; + try { + serializedProgress = serializer.serialize(mapper.writeValueAsString(progress)); + } catch (Exception e) { + throw new SemanticException(e); + } + if (serializedProgress.length() > ReplStatsTracker.RM_PROGRESS_LENGTH) { + stage.setReplStats("RM_PROGRESS LIMIT EXCEEDED TO " + serializedProgress.length()); Review comment: Add keyword as a prefix like "ERROR" or "WARN" -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 676235) Time Spent: 5h (was: 4h 50m) > Compress Hive Replication Metrics while storing > ----------------------------------------------- > > Key: HIVE-25596 > URL: https://issues.apache.org/jira/browse/HIVE-25596 > Project: Hive > Issue Type: Improvement > Reporter: Haymant Mangla > Assignee: Haymant Mangla > Priority: Major > Labels: pull-request-available > Attachments: CompressedRM_Progress(k=10), CompressedRM_Progress(k=5), > PlainTextRM_Progress(k=10), PlainTextRM_Progress(k=5) > > Time Spent: 5h > Remaining Estimate: 0h > > Compress the json fields of sys.replication_metrics table to optimise RDBMS > space usage. -- This message was sent by Atlassian Jira (v8.3.4#803005)