Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ private Long incrementalDump(Path dumpRoot, DumpMetaData dmd, Path cmRoot, Hive
Map<String, Long> metricMap = new HashMap<>();
metricMap.put(ReplUtils.MetricName.EVENTS.name(), estimatedNumEvents);
metricMap.put(ReplUtils.MetricName.TABLES.name(), 0L);
metricMap.put(ReplUtils.MetricName.FUNCTIONS.name(), 0L);
int size = tablesForBootstrap.size();
if (db != null && db.getParameters()!=null &&
Boolean.parseBoolean(db.getParameters().get(REPL_RESUME_STARTED_AFTER_FAILOVER))) {
Expand Down Expand Up @@ -1299,6 +1300,8 @@ private void dumpEvent(NotificationEvent ev, Path evRoot, Path dumpRoot, Path cm
work.getMetricCollector().reportStageProgress(getName(), ReplUtils.MetricName.EVENTS.name(), 1);
if (eventHandler.dumpType() == DumpType.EVENT_CREATE_TABLE) {
work.getMetricCollector().reportStageProgress(getName(), ReplUtils.MetricName.TABLES.name(), 1);
} else if (eventHandler.dumpType() == DumpType.EVENT_CREATE_FUNCTION) {
work.getMetricCollector().reportStageProgress(getName(), ReplUtils.MetricName.FUNCTIONS.name(), 1);
}
}
work.getReplLogger().eventLog(String.valueOf(ev.getEventId()), eventHandler.dumpType().toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public void replStateLog() throws SemanticException {
metricCollector.reportStageProgress("REPL_LOAD", ReplUtils.MetricName.EVENTS.name(), 1);
if ("EVENT_CREATE_TABLE".equals(eventType)) {
metricCollector.reportStageProgress("REPL_LOAD", ReplUtils.MetricName.TABLES.name(), 1);
} else if ("EVENT_CREATE_FUNCTION".equals(eventType)) {
metricCollector.reportStageProgress("REPL_LOAD", ReplUtils.MetricName.FUNCTIONS.name(), 1);
}
break;
case END:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public IncrementalLoadTasksBuilder(String dbName, String loadPath, IncrementalLo
Map<String, Long> metricMap = new HashMap<>();
metricMap.put(ReplUtils.MetricName.EVENTS.name(), (long) iterator.getTotalEventsCount());
metricMap.put(ReplUtils.MetricName.TABLES.name(), 0L);
metricMap.put(ReplUtils.MetricName.FUNCTIONS.name(), 0L);
this.shouldFailover = shouldFailover;
if (shouldFailover) {
Database db = null;
Expand Down
Loading